A simple bash shell script to update Laravel files and folders permission and owner
cd /var/www/
wget https://raw.githubusercontent.com/marounmelhem/laravel-permissions-fix/dev/perm_fix.sh
#Set variables here
LARAVEL_OWNER=user # <-- owner (user)
LARAVEL_WS_GROUP=www-data # <-- WebServer group
LARAVEL_ROOT=/var/www/html # <-- Laravel root directory
chmod +x perm_fix.sh
./perm_fix.sh