How to create a symlink for image folders in Laravel 5.4
I have created an application and deployed in a server. I also have a functionality of generating QR codes and save them into storage symlink.
Here’s my server scaffolding:
In a local
directory I have all source Laravel code. Other files are from public
directory.
How to create a symlink in the server folder? What’s the workaround?
Here’s the example of doing via calling a PHP script:
symlink('/home/local/storage/app/public', 'storage');
from Laravel Questions and Answers https://laravelquestions.com/php/how-to-create-a-symlink-for-image-folders-in-laravel-5-4/
via Lzo Media
No comments:
Post a Comment