I have a Laravel project with Voyager, and it works fine on localhost, but after uploaded images not displaying
php artisan storage:link
in .env
I tried APP_URL=http://localhost
/ APP_URL=http://localhost:8000
/ APP_URL=<server-ip>
, but nothing works.
1.3
/public
directory I didn't change anything about public/index.php
nor .htaccess
.I found the solution
in .env
file change APP_URL
to <server-ip>/public
Now all images work fine hope someone else will find this usefull.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.