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

I don't see any harm in doing that. (as long as the query is small) The middleware will be called once every request and you will be calling the db in that request anyway.

What are you trying to do in the middleware ?

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

funcoding funcoding Joined 6 Mar 2015

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.