filamentphp admin route not found
if you just installed Filamentphp admin panel and “/admin” gives you a 404 error try clearing route cache.
php artisan route:clear
if you just installed Filamentphp admin panel and “/admin” gives you a 404 error try clearing route cache.
php artisan route:clear
changing php version in local web server doesn’t change the version in the command line terminal of an IDE like PhpStorm. here I changed the php version in laragon but the version in phpstorm terminal stays the same. you can check it with php -v command to change that we…
We are going to build a Livewire component using tagify library. tagify is a javascript library with a lot of features to make a tag input like this: the goal is to create a livewire component to interact with this library. Install Livewire First, install Livewrie in your Laravel project…
In php we can use Guzzle library to download images. Here I am using books.toscrape.com website as an example. First, we have to install Guzzle library. and then include “autoload.php” file. we need the “src” of the images we want to scrape. use inspect element to find the address. then…
Atomic Lock is a way to make sure specific operations just happen by one user during a certain time. let’s say we have an app that reserves seats for events like theater or conferences. obviously, we don’t want to mistakenly give one seat to two people. you might ask how…
what is trait and where should we use it in Laravel? Trait is a feature in PHP that lets us define methods once and use them in multiple classes. for example, Laravel controllers use traits for adding capabilities like request validation or authorization. take a look at Controller.php in Laravel:…
json_encode and json_decode are php functions for working with JSON strings. Converting Array to JSON json_encode takes an array as a parameter and converts it to JSON. let’s test it. here it returns this JSON string: we can pass a second parameter as a flag to json_encode function. these flags…