1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace AlgoWeb\PODataLaravel\Interfaces; |
||
6 | |||
7 | use AlgoWeb\PODataLaravel\Enums\ActionVerb; |
||
8 | use Illuminate\Database\Eloquent\Model; |
||
9 | use Illuminate\Database\Eloquent\Relations\Relation; |
||
10 | |||
11 | interface AuthInterface |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * Is the requester permitted to perform the requested action on the model class (and instance, if supplied)? |
||
16 | * |
||
17 | * @param ActionVerb $verb |
||
18 | * @param class-string|null $modelname Model class to access |
||
0 ignored issues
–
show
Documentation
Bug
introduced
by
![]() |
|||
19 | * @param Model|Relation|null $model Specific eloquent model to access |
||
20 | * |
||
21 | * @return bool |
||
22 | */ |
||
23 | public function canAuth(ActionVerb $verb, $modelname, $model = null); |
||
24 | } |
||
25 |