1 | <?php |
||
2 | /** |
||
3 | * Created by PhpStorm. |
||
4 | * User: arthur |
||
5 | * Date: 29.10.18 |
||
6 | * Time: 16:14. |
||
7 | */ |
||
8 | |||
9 | namespace Foundation\Traits; |
||
10 | |||
11 | use Foundation\Contracts\Ownable; |
||
12 | |||
13 | trait HandlesOwnership |
||
14 | { |
||
15 | public function hasAccess(?Ownable $model) |
||
16 | { |
||
17 | $this->authorize('access', $model); |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
18 | } |
||
19 | } |
||
20 |