The document mentions: "If your application only uses controller routing, you can use Laravel's route cache. Using route cache will greatly reduce the time required to register all routes in the application"
What to do Do you understand this passage? Can route caching be used in the following scenario?
Route::get('user/{name}', function($name)
{
//dosome
})
->where('name', '[A-Za-z]+');
This won’t work.
laravel does not support
闭包
route caching.