Support the ongoing development of Laravel.io →
Requests Architecture
Last updated 2 years ago.
0

I can't see why not. I am using middleware to get localization language and it works perfectly.

Also this sentence in docs proves that middleware can be used for tasks other than filtering requests.

Of course, middleware can be written to perform a variety of tasks besides authentication. A CORS middleware might be responsible for adding the proper headers to all responses leaving your application. A logging middleware might log all incoming requests to your application.

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

kokokurak kokokurak Joined 21 Aug 2014

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.