Support the ongoing development of Laravel.io →
Requests Cache
Last updated 1 year ago.
0

from the documentation

  • If your application is exclusively using controller routes, you may take advantage of Laravel's route cache.

this means every route must be to a controller (implicit or resourceful), not a closure.

you can still group routes with a closure, but you cannot echo or return anything in the closure. I had one closure that simply echoed something, but just moved it to a controller and it works find

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.