Voyager: Images not shown on hosting

Created on 16 Sep 2017  路  9Comments  路  Source: the-control-group/voyager

  • Laravel Version: 5.3
  • Voyager Version: 0.11.14
  • PHP Version: 5.6
  • Database Driver & Version:

Description:

i set up a voyager project on production as a subdomain example : http://subdomain.web.com/public/

on .env APP_URL is http://subdomain.web.com/public/

http://subdomain.web.com/storage/.../.../img.jpg ---- image not appear

can anyone help me please

Steps To Reproduce:

install laravel voyager on godaddy as a subdomain

Most helpful comment

@saldanac, the issue is with your configuration. It's not recommended to have laravel installed so the public directory is under the web root (to find out why, try visiting http://subdomain.web.com/.env). If you insist on doing it that way, you need to update the storage path in config/filesystem.php. the path /storage/{...}/img.jpg is referring to /public/storage/..., not /storage/...

Also, the green background is dependent on the terminal/shell you're using, but likely means that it's "world"-writable (https://unix.stackexchange.com/a/94505)

All 9 comments

Are you run php artisan storage:link?

yes I did.... My laravel app is running like http://subdomain.web.com/public/ but images not loading :(

everythings is working fine...only images not loading properly

1

what green background on storage folder means?

@saldanac, the issue is with your configuration. It's not recommended to have laravel installed so the public directory is under the web root (to find out why, try visiting http://subdomain.web.com/.env). If you insist on doing it that way, you need to update the storage path in config/filesystem.php. the path /storage/{...}/img.jpg is referring to /public/storage/..., not /storage/...

Also, the green background is dependent on the terminal/shell you're using, but likely means that it's "world"-writable (https://unix.stackexchange.com/a/94505)

Thank you I have done a wrong configuration...now I have laravel installed on root directory and public folder on public_html/subdomain ... now working fine. of course Its my first time uploading a laravel project on a shared hosting 馃拑 Thank you for your help.

pls help me

i tried file system and app url

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.

Was this page helpful?
0 / 5 - 0 ratings