Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | trait PermissionHasRelations |
||
8 | { |
||
9 | /** |
||
10 | * Permission belongs to many roles. |
||
11 | * |
||
12 | * @return BelongsToMany |
||
13 | */ |
||
14 | public function roles() |
||
15 | { |
||
16 | return $this->belongsToMany(config('roles.models.role'))->withTimestamps(); |
||
|
|||
17 | } |
||
18 | |||
19 | /** |
||
20 | * Permission belongs to many users. |
||
21 | * |
||
22 | * @return BelongsToMany |
||
23 | */ |
||
24 | public function users() |
||
27 | } |
||
28 | } |
||
29 |