Laravel

Permissions for storage

Introduction#

Laravel requires some folders to be writable for the web server user.

Example

We also need to set correct permissions for storage files in the server. So, we need to give a write permission in the storage directory as follows:

$ chmod -R 777 ./storage ./bootstrap

or you may use

$ sudo chmod -R 777 ./storage ./bootstrap

For windows

Make sure you are an admin user on that computer with writeable access

xampp\htdocs\laravel\app\storage needs to be writable

The NORMAL way to set permissions is to have your files owned by the webserver:

sudo chown -R www-data:www-data /path/to/your/root/directory

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow