1 | <?php namespace Arcanedev\LaravelAuth\Models\Relationships; |
||
14 | trait RoleRelationships |
||
15 | { |
||
16 | /* ------------------------------------------------------------------------------------------------ |
||
17 | | Relationships |
||
18 | | ------------------------------------------------------------------------------------------------ |
||
19 | */ |
||
20 | /** |
||
21 | * Role belongs to many users. |
||
22 | * |
||
23 | * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany |
||
24 | */ |
||
25 | public function users() |
||
32 | |||
33 | /** |
||
34 | * Role belongs to many permissions. |
||
35 | * |
||
36 | * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany |
||
37 | */ |
||
38 | public function permissions() |
||
45 | } |
||
46 |