Usage scenario issues of Laravel's route cache
我想大声告诉你
我想大声告诉你 2017-05-16 16:54:00
0
1
543

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]+');
我想大声告诉你
我想大声告诉你

reply all(1)
世界只因有你

This won’t work.

laravel does not support 闭包route caching.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template