# Laravel Commands: Optimize

**Project:** Sites | **Board:** Live | **Votes:** 1
**URL:** https://roadmap.ploi.io/projects/2-site-level-requests/items/1230-laravel-commands-optimize

---

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

---

## Comments

**EricH** (2025-05-29T08:50:43+00:00):
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

