I have followed all the instruction on the internet already but none of them can solve.
Could you please propose any alternative solution to this issue?
Hi! Can you tell href of image?
As @ArtemMolotov has requested, please share the URL for your site (I'm guessing http://localhost:8000/admin/) and the URL/href for the image that's broken.
Here's my URL for my site: http://127.0.0.1:8000/admin

@hourdev Can you open image if you delete /public from image href?
go to config/filesystem.php and check if the public url is same as this one.
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
@ArtemMolotov that works if i delete /public. So, what should I do next?
@simoebenhida already tried but nth has changed
can i see your public url on config/filesystem.php and your variable APP_ENV on .env
@simoebenhida
yes on your filesystem.php public array replace 'public' => 'url' with this
'url' => env('APP_URL').'/storage', and it will work
still doesn't work
can i see the new filesystem.php changements
yes remove public from 'local' => 'url' too
or is better to remove it you dont need url on your local driver its already called on public driver.


still doesn't work
yes. already removed, but doesn't work
did you already run php artisan config:cache by any chance ?
didn't.. haha
now, it is working. thanks a lot for your help!
i meet the same question and i did all you said,however it still doesn't work
albeit this is closed, people are still having an issue. the solution for me was to remove the symlink in the public folder, then ensure the URL was correct in the .env file
APP_URL=http://your-app.test
As this constant is used in the config/filesystems.php file
'url' => env('APP_URL').'/storage',
the storage folder is appended the URL, so a forward slash is required before storage
so the url will be http://your-app.test/storage
Then navigate to the voyager dashboard and an alert will be there to fix the symlink, once clicked it worked for me.
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
'url' => '/storage',
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
's3' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'),
'url' => env('AWS_URL'),
],
],
Dose not working please help
After deleting the public/storage ( if any ) folder run the command
php artisan storage:link
php artisan config:cache
And finally re-run the server .
It works for me .
It worked for me. Thank you @arshomashohag
Most helpful comment
didn't.. haha
now, it is working. thanks a lot for your help!