简体   繁体   中英

Laravel Voyager doesn't display uploaded images after uploaded to server

Problem description

I have a Laravel project with Voyager, and it works fine on localhost, but after uploaded images not displaying

What I tried

php artisan storage:link

in .env I tried APP_URL=http://localhost / APP_URL=http://localhost:8000 / APP_URL=<server-ip> , but nothing works.

Facts

  • Voyager version is 1.3
  • The domain of the project is heading to /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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM