Methods are:
composer install --optimize-autoloader --no-dev
composer dump-autoload
The others are optional.
- Do you cache your configs? If yes, include
php artisan config:cache
- Do you cache your routes? If yes, include
php artisan route:cache
- Do you cache your views? If yes, include
php artisan view:cache
- Do you want to flush your app cache every time you deploy? If yes, include
php artisan cache:clear
Beware that flushing your app cache could have many undesirable effects, especially if you're using your cache system for sessions, queues, etc. as it would clear out everything