search

Home  >  Q&A  >  body text

Usage scenario issues of Laravel's route cache

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

reply all(1)I'll reply

  • 世界只因有你

    世界只因有你2017-05-16 16:56:00

    This won’t work.

    laravel does not support 闭包route caching.

    reply
    0
  • Cancelreply