What Composer and Artisan commands are necessary to run during deployment of a brand new Laravel application? Per Laravel 5.7 documentation, are these the only essential commands?
composer install --optimize-autoloader --no-dev
php artisan config:cache
php artisan route:cache
Methods are:
composer install --optimize-autoloader --no-dev
composer dump-autoload
The others are optional.
php artisan config:cache
php artisan route:cache
php artisan view:cache
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