I guess using laravel permissions package can assist you very much in what you need,
won't have two models for the users and admins, but will be based on roles and permissions
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I've been reading around - been a while since this question ever really came up.
Designing a new application, with the following thoughts:
Given the last point in particular it seems prudent to me (and, as far as I can tell is generally best practice), I want to separate the sessions between users and admins.
Now, every time before this was asked, the answer is 'do role based permissions' or something to that vogue, and that'll be happening anyway; not just anyone can log into the admin area! But because of the user content angle, and potentially quite rich user content, it seems prudent to try to minimise XSRF type attacks where possible. It also ensures that while users might remain logged in for longer periods in the main app, they will be forced to periodically reauthenticate for the admin area.
I suppose I have two questions:
Please or to participate in this conversation.