Reputation: 23
I am having trouble displaying the images uploaded using spatie media library with the filament admin panel.
This is the code for form schema :
SpatieMediaLibraryFileUpload::make('thumbnail')->collection('posts')
And this is the code for table columns
SpatieMediaLibraryImageColumn::make('thumbnail')->collection('posts')
Thanks.
Upvotes: 2
Views: 10684
Reputation: 51
I got issue even after updating right url for APP_URL on .env file. Fixed after clearing configuration cache.
php artisan config:cache
Upvotes: 0
Reputation: 146
Check in your .env (root folder of your laravel project) file that the APP_URL is the same as your server url. You get the server url on startup (php artisan server) mine is http://127.0.0.1:8000. (or http://localhost:8000)
So you fill in from APP_URL=http://127.0.0.1 and change to APP_URL=http://127.0.0.1:8000 If you have localhost fill in APP_URL=http://localhost:8000
Check if the files are uploaded to your storgae and been linked with your public folder. In your CLI: php artisan storage:link
Upvotes: 13