I tried php artisan storage:link, in the terminal it said "link has been connected" but when I checked the folder was not connected.
This causes the avatar on the dashboard section of the website to not be displayed and the dashboard avatar only displays a broken image logo
I tried php artisan storage:link, in the terminal it said "link has been connected" but when I checked the folder was not connected.
This causes the avatar on the dashboard section of the website to not be displayed and the dashboard avatar only displays a broken image logo
Share Improve this question edited Feb 4 at 6:51 CiaPan 9,5702 gold badges22 silver badges37 bronze badges asked Feb 4 at 6:49 Alfin FaizAlfin Faiz 11 silver badge 2 |1 Answer
Reset to default 1In Laravel, if there is already a folder with the same name as the one you want to create a symbolic link for in the app/public
directory, Laravel will detect it as if the symbolic link is already made. To resolve this issue, follow these steps:
1. Check for Existing Folder:
Ensure that there is no existing folder in the app/public
directory with the same name as the symbolic link you want to create. If such a folder exists, delete it.
2. Run the Command Again:
After deleting the existing folder, run the following command to create the symbolic link:
php artisan storage:link
3. Verify the Symbolic Link:
Check if the symbolic link has been created successfully. This should resolve the issue and allow Laravel to create the symbolic link as expected.
public
folder notstorage/app/
– A. El-zahaby Commented Feb 4 at 23:06