This demonstrates using Filament as an admin panel alongside a separate front-facing website built with Bootstrap CSS.
For the Filament Panel, we have three resources to manage Category
, City
, and Company
.
The company uses the spatie/laravel-medialibrary
package to manage images. For the image field in the form for the company, we are using the official Filament plugin Spatie Media Library
.
For image upload, we call the SpatieMediaLibraryFileUpload()
method.
Forms\Components\SpatieMediaLibraryFileUpload::make('logo'),
To show the image, the SpatieMediaLibraryImageColumn()
method is used with the conversion()
to show the generated thumbnail.