laravel-medialibrary: Thumb not displaying
I have everything all set up and I see the url of the image if I inspect the image url http://localhost/storage/1/conversions/Jeery-thumb.jpg but this url is returning 404 on my browser when i navigate to this path. I then tried it with the port my laravel project was running on 8000 and then it showed localhost:8000/storage/1/conversions/Jeery-thumb.jpg How should this be handled ?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (1 by maintainers)
@yemilgr I can reproduce this issue running my Laravel app via
php artisan serve.Having looked into this further I can see that the issue is caused due to the
filesystems.phpconfig in my Laravel install usingenv('APP_URL').'/storage'and myAPP_URLin.envis set tohttp://localhost.@pianistprogrammer The solution is to change your
APP_URLvalue tohttp://localhost:8000Please run this on cmd php artisan storage:link
this is solve my problem
Have you tried php artisan storage:link ?? I think this will solve the problem
Conversions are queued by default, perhaps the queue worker is not running or is outdated, causing unprocessed thumb conversions until the queue worker is updated and running.
Stop the current queue worker then re-run it:
php artisan queue:work@carbontwelve Thank you my friend! This did the trick.