EricH

EricH

Live

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

EricH

EricH

Item author
· · Edited
·

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

1 total vote
EricH

Laravel Commands: Optimize

1 total vote
EricH
  • Dennis moved item to board Live

    1 week ago
  • Dennis moved item to board In progress

    1 week ago
  • EricH moved item to project Site Level Requests

    1 week ago
  • EricH created the item

    1 week ago