php artisan optimize
OptimizationCache configuration and routes for better performance
Examples
Common usage examples
Optimize the application
php artisan optimizeCache configuration files
php artisan config:cacheCache routes
php artisan route:cacheNotes
- Run before deploying to production
- Use optimize:clear to clear all caches
Related Commands
You might also find these useful