I just wanted to bump this :)
Expanding Breeze with user status and/or roles
So, I'm using Breeze to handle user registration and login, but now I'm having some other thoughts. I would like for my users to be able to have some roles like admin, regular user, coordinator, and also a status like active user, pending activation, deactivated. Basically, one is account-related, and another is the role within the organization.
Should I just add two columns to the users table? And should I use IDs for that (1 - admin, 2 - user, 3 - coordinator) and having a separate table for roles, or should I just enter "admin"?
I ask this because I'm not sure how to use that later; if I want to show something only to admin, would I be able to use if (User::auth()->role('admin')) or something else?
AFAIK, having a separate table for that stuff is the way to go, but I want to check with you people :)
Please or to participate in this conversation.