This demonstrates using Filament as an admin panel alongside a separate front-facing website built with Bootstrap CSS.
One-time payment
Sign in with GitHub to buy
Sign in first, then complete your $9 checkout.
30-day money-back guarantee
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.