Laravel Controllers: Route Caching

Route Caching

Php artisan route:cache
Php artisan route:clear
  • To generate a route cache, just execute the route:cache Artisan command.
  • You may use the route:clear command to clear the route cache.
  • To use route caching, you must convert any Closure routes to controller classes.

Related concepts

Laravel Controllers: Route Caching — Structure map

Clickable & Draggable!

Laravel Controllers: Route Caching — Related pages: