Changing storage path permission in Laravel

2024-04-19 23:46:04 Mahi Laravel

Fixing Permission denied Error in Laravel

Sometime you got Permission denied error in Laravel. The error was caused because Laravel tries to write something to the file system and it does not have permission to do so. Solution to this problem or error is Change the owner or permissions of your storage path. To change permission of storage path please run below commands on your terminal or command Promt.

//Change you current working directory to storage folder
$ cd storage
// Give below permissions to files and Folder under storage directory 
$ sudo chmod 777 *
$ sudo chmod 666 */*

This post is submitted by one of our members. You may submit a new post here.

Related Tricks