Currently there are four seperate commands available in the panel:
- php artisan config:cache
- php artisan event:cache (not available in panel)
- php artisan route:cache
- php artisan view:cache
Instead of these seperate commands there is the command:
- php artisan optimize
- php artisan optimize:clear
https://laravel.com/docs/12.x/deployment#optimization
That bundles the above commands in one. Can this optimize command be added to the commands in the panel?
Thanks
·
Thanks for adding it to the panel.
When added a new Laravel site there is a popup window with deploy suggestions:
php artisan route:cache
php artisan view:clear
php artisan migrate --force
Maybe change the first 2 commands with php artisan optimize? That does it all in one command. It says so also in the Laravel docs:
This command should typically be invoked as part of your application's deployment process