Got some issues on production.
In details, I have deployed Laravel project on shared hosting cPanel, I have kept my project in root folder and Laravel`s public folder kept inside public_html, and when I run PHP artisan storage: link it creates a symlink of storage folder in myfolder/public but I want it to go inside public_html
How can I do that?
2
Answers
A solution could be to make a custom artisan command, something like
storage_custom:link
and copy the contents of the originalstorage:link
comamnd and just change the paths as you want them to be. Here you can see the originalstorage:link
command in Laravel.You can create custom symlink via cli !
cd to your laravel project directory and run the following command
This will create a symbolic link of your storage folder inside your public_html folder.