Commands.app

php artisan route:cache

Optimization

Create a route cache file for faster route registration

Examples
Common usage examples

Cache routes

php artisan route:cache
Notes
  • Speeds up route registration
  • Run in production for better performance
  • Clear cache after route changes
Related Commands
You might also find these useful