How to create a symlink for image folders in Laravel 5.4 - development

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:

enter image description here

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

Comments

Popular posts from this blog

How can I solve "laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system"? - development

CORS issue between web/android/ios

Angular.js ng-click with mouse middle button