最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

html - Can't do php artisan storage:link, The storage folder cannot be connected to the public folder - Stack Overflow

programmeradmin0浏览0评论

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
  • Could have something to do with the double exclamation point in the path name. Maybe try creating a symbolic link manually and see if that works. – naamhierzo Commented Feb 4 at 7:12
  • you did a screenshot for public folder not storage/app/ – A. El-zahaby Commented Feb 4 at 23:06
Add a comment  | 

1 Answer 1

Reset to default 1

In 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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论