Palzin Track
Get 15% off with code PTRACKSIGNUP15 

Laravel Diary Logo

Laravel Artisan Route Command: The route:cache Command

The route:cache command in Laravel generates a route cache file, improving the performance of route registration. This command does not support caching routes with closures as their actions. To use route caching, all routes must be registered using controller classes. The route:cache command is simple to run and stores the cache file in bootstrap/cache/routes.php, encoding routes as serialized objects.