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
we learn how we can customize Filament Admin panel, we can change color, logo, and use our own custom assets.
sometimes we need to order the records of a table based on a column from another table. imagine we have a table called “authors” that has a relationship with a “books” table. we might need to get books and sort them based on author’s name. here I will explain ordering…
there is a function in php called fputcsv which helps us create a csv file. as the first parameter, it gets the file we opened with fopen, and for the second one, we put the array we want to put into the CSV file. it will be an array of…
The Filament admin panel has Charts, Tables and Stats Widgets by default. we can create our own custom widgets too. we are going to create custom a widget that shows the status of an order in an e-commerce website. Create Widget Class and View file i installed Filament and in…
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…
Laravel collections have a method named tap. With this method, we can do actions on the collection without changing it. let’s see an example. imagine we have a collection like this: we sort the collection and then use the tap method on the collection. in the closure inside tap, we…