Storage in laravel says symlink - no such file

后端 未结 12 1958
离开以前
离开以前 2020-12-07 22:39

I deployed laravel app on shared hosting in public_html/app folder. Here is everything from public folder. In /../../files I have rest of files. When I do php artisan storag

12条回答
  •  情歌与酒
    2020-12-07 23:41

    To fix this error on your server, change directory to the public and remove the symbolic link for the storage folder.

    The following commands will help you remove the symbolic link from the public folder:

    cd public
    rm storage
    

    After removing the symbolic link change directory to the main folder using:

    cd ..
    

    Now create the symbolic link with the following command:

    php artisan storage:link
    

    After running the command successfully, you should get the following message

    The [public/storage] directory has been linked.
    

    I hope this post helps you.

    SYMLINK(): No Such File or Directory Laravel

提交回复
热议问题