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 ./bootstrapor you may use
$ sudo chmod -R 777 ./storage ./bootstrapFor windows
Make sure you are an admin user on that computer with writeable access
xampp\htdocs\laravel\app\storage needs to be writableThe 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