images
i have problem with images even if they were working perfectly but now they dont apear in the table or even the edit i have done the command"php artisan storage:link" and also cleard the cach
Solution:Jump to solution
1. i stopped the project 2.cd path/to/your/laravel_project/public 3.rm storage 4. cd ../ 5.php artisan storage:link 6.php artisan cache:clear
>> php artisan config:clear
>> php artisan view:clear 7.php artisan serve so i just removed the storage link and connect it again ------ because when i created that project 1 month ago images was working and now they stopped...
19 Replies
i have tried some solutions i found in here in discord but nothing had worked
Your
APP_URL
doesn’t match the URL you are entering into the browser.
That’s pretty much issue nr 1 here on discord regarding images 😅http://127.0.0.1:8000/admin/products this is exactly what is the url so i put http://127.0.0.1:8000/ and i have seen here someone replaced 127.0.0.1 by localhost and i did the same
The error message says you are using
localhsot:8000
for APP_URL
. Did you clear your config cache after the change?
If you have ASSET_URL
set, check that one toono i dont have ASSET_URL
okay i changed it
i think the problem is here and also it doesnt show the public in url even if the directory is inside storage/app/public/images_files
should i change something here
Now that's the different error:
- Try without the trailing slash
-
public
should not be in the URL, because it's the root of the project.
- Did you run php artisan storage:link
?i tried without the trailing slash stiil the same and yes i have run php artisan storage:link
without the slash
And the file exists in
storage/app/public/images_files/
?yess
Sounds like your symlink isn't working then. When you created it, it said "impossible to create a symlink that already exists". Make sure the symlink it right and pointing to the right dir
I think you can us
dir public/storage
for this in Powershell
What dev environment are you using? I think some don't support symlinksomg its working now thank youuu .. i will write what i did
Solution
1. i stopped the project 2.cd path/to/your/laravel_project/public 3.rm storage 4. cd ../ 5.php artisan storage:link 6.php artisan cache:clear
>> php artisan config:clear
>> php artisan view:clear 7.php artisan serve so i just removed the storage link and connect it again ------ because when i created that project 1 month ago images was working and now they stopped