Support the ongoing development of Laravel.io →
posted 9 years ago
Security

Hi,

I have a separate db for my permissions, so want to only hit it once, when the user logs in.

Where should I store the retrieved permissions? Just stick them in the session?

Where can I put the code, so that it gets executed when a user logs in?

Mick

Last updated 2 years ago.
0

are you trying to get all permissions or just the current user's permissions ?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

phpMick phpmick Joined 12 Oct 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.

© 2025 Laravel.io - All rights reserved.