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

ng-show doesn’t work correct with value boolean

Using PHP and MySQL data to generate PDF letters like in MS Word mailmerge functionality - development

ng-include of inline SVG does not display gradient except in Chrome