Laravel
Permissions for Cache
sudo find storage/ -type f -exec chmod 664 {} \;
sudo find storage/ -type d -exec chmod 775 {} \;
sudo find bootstrap/cache/ -type f -exec chmod 664 {} \;
sudo find bootstrap/cache/ -type d -exec chmod 775 {} \;
sudo chown -R charlie:www-data storage
sudo chown -R charlie:www-data bootstrap/cache
sudo chmod -R ug+w storage
sudo chmod -R ug+w bootstrap/cache
sudo chmod g+s storage
sudo chmod g+s bootstrap/cache
php artisan cache:clear
composer dump-autoloadsetfacl -R -dm u:www-data:rwx storage
setfacl -R -m u:www-data:rwx storage
chmod -R g+w storageUse below if you want identifier other than ID to be used with routing. (passing in User $user in a controller for example)
With Notifications, class name CANNOT end in Notification. For example, ResetPasswordNotification (as of Laravel 5.4) will have issues when passing in objects via the constructor of the notification class.
Retry failed jobs
Create Model with Migration
Last updated