'Laravel Voyager not showing images

I have created a Laravel app using installatron on godaddy.com (shared hosting). After installing Voyager the default admin avatar is not showing. The storage link is automatically created by Voyager. But when I open the admin panel voyager tries to get admin avatar from [app_url]/storage/users/default.png and receives a 404. The avatar is at [app_url]/public/storage/users/default.png

Screenshot

Versions: Laravel: 5.8 Voyager: 1.3



Solution 1:[1]

Put port number in .env file if use localhost

APP_URL=http://localhost:port_number

Solution 2:[2]

I've faced the exact same issue before, after checking the APP_URL, go ahead and execute

php artisan config:clear

After that try again.

If it doesn't work, delete the symlink storage in public/ and execute

php artisan storage:link

Solution 3:[3]

Please check if the APP_URL in your .env file is correct.

That it equals the domain-name you bought at godaddy and also the protocol (HTTP or HTTPS).

Solution 4:[4]

Simply change the 'APP_URL' variable into the .env file to your localhost route.

For example:

APP_URL=http://127.0.0.1:8000

I was facing this issue today

Solution 5:[5]

in my case 3 steps:

1- correct App_URL in .env file (do`nt forget port number ) example:

APP_URL=http://127.0.0.1:8000

2- delete storage file from [project path]\public

3- run: php artisan storage:link

enjoy:)

Solution 6:[6]

In your .env file, replace the app URL.

APP_URL=http://localhost:port 

Solution 7:[7]

I solved my problem in local try with adding port to APP_URL. But in the server problem was the "Storage" folder which is in public directory.

UPDATE Feb 2022 please notice the symbolic link must be existed in your root

Solution 8:[8]

I had to change the setting in filesystems.php.

'url' => env('APP_URL').'/nameOfMyRootFolder/storage/app/public',

Then it was able to resolve the image link correctly.

Solution 9:[9]

Change the setting in filesystems.php, disks -> public -> "url => env('APP_URL').'/public/storage'"

Solution 10:[10]

Please check APP_URL=<> in your .env file it should be basically like

APP_URL=http://localhost:8000

Solution 11:[11]

Check APP_URL in .env file, make sure that APP_URL in .env file is to the public folder of your project

APP_URL=http://localhost/your-project-name/public/

Solution 12:[12]

APP_URL setting worked for me. I'm running the app in a container so I have to put the port used from my host not 8000. I have port 8000 mapped to 8186, so I have to put APP_URL=http://localhost:8186

Solution 13:[13]

if you were using sail, try run :

 sail artisan storage:link