I have a system of user authentication , where I use API sentinel
in Laravel 5.2
.
When I make Check_user()
in middleware
to see if the user is logged in and has access to the route, he checks 5 queries in the database, including:
- if the user is logged in
- permission
- if active
- throttle , etc.
Would it be cumbersome for the system to do this scan for every page reloaded?
Note: Each query
is taking: 2ms