I have 3 tables
roles
id `````` |```` `` role ```````` |
1 `````` ```````` Staff
permissions
id ````````| `````````` Name ```````````` |
1 ````````````Manage All Projects
2 ```````````` Manage Clients
acces_permissions
id_permission FK | id_role FK
`````` `` 1 ```````````````````` 1
```````` 2 ```````````````````` 1
and i will have a table with
roles | permissions Name |
Staff | Manage All Projects Manage Clients |
how can o this whit this 3 Models
class roles extends Model
class permissions extends Model
class acces_permissions extends Model