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
No description
No description
No description
No description
No description
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...
Jump to solution
19 Replies
Yassmine
YassmineOP7mo ago
i have tried some solutions i found in here in discord but nothing had worked
Yassmine
YassmineOP7mo ago
No description
Dennis Koch
Dennis Koch7mo ago
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 😅
Yassmine
YassmineOP7mo ago
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
Dennis Koch
Dennis Koch7mo ago
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 too
Yassmine
YassmineOP7mo ago
no i dont have ASSET_URL
Yassmine
YassmineOP7mo ago
okay i changed it
No description
Yassmine
YassmineOP7mo ago
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
No description
Yassmine
YassmineOP7mo ago
should i change something here
No description
Yassmine
YassmineOP7mo ago
No description
Dennis Koch
Dennis Koch7mo ago
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?
Yassmine
YassmineOP7mo ago
i tried without the trailing slash stiil the same and yes i have run php artisan storage:link
No description
Yassmine
YassmineOP7mo ago
without the slash
No description
Dennis Koch
Dennis Koch7mo ago
And the file exists in storage/app/public/images_files/?
Yassmine
YassmineOP7mo ago
No description
Yassmine
YassmineOP7mo ago
yess
Dennis Koch
Dennis Koch7mo ago
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 symlinks
Yassmine
YassmineOP7mo ago
omg its working now thank youuu .. i will write what i did
Solution
Yassmine
Yassmine7mo ago
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
Want results from more Discord servers?
Add your server