Set Laravel Storage Permissions

Give the web server write access to storage and bootstrap/cache. The classic Laravel permissions fix.

Sets the correct ownership and permissions for Laravel storage and bootstrap/cache directories. Laravel must be able to write to these directories or it will throw 500 errors.

When you need this: After deployment or when Laravel throws "failed to open stream: Permission denied" errors.

Variables

Command


        
7 views 0 copies
Log in to rate
Log in to save

Free account. Save snippets into your own collections.