Permission denied error while creating storage link in Laravel

The error permission denied occurs in Laravel while creating storage link using command or creating symbolic link between two folders using PHP script because of file permission issue.

Answers 1
  • Set permission 777 to public directory manually to avoid permission denied error in Laravel while creating symbolic link

    You can set permission 777 to public directory (project/public) by changing the file attribute manually. You have to check all checkboxes of file attribute items to set permission 777 to public directory. Now you can create symbolic link between storage/app/public and public/storage in laravel project.
  • Back to code snippet queries related laravel