Level 75
You can use this package for that
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi All,
I have a question i have a users table a roles table and a rights table.
now the user can have multi roles witch i have so
$user::find(1); $user->roles
so every role can have multi rights
so i want to make a user with 2 roles and 10 rights, how can i make a function it will return all the rights like a collection?
Please or to participate in this conversation.