1 | <?php |
||
12 | class ApiAuthenticateRequest extends Request |
||
13 | { |
||
14 | |||
15 | |||
16 | /** |
||
17 | * Define which Roles and/or Permissions has access to this request. |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $access = [ |
||
22 | 'permissions' => null |
||
23 | ]; |
||
24 | |||
25 | /** |
||
26 | * Id's that needs decoding before applying the validation rules. |
||
27 | * |
||
28 | * @var array |
||
29 | */ |
||
30 | protected $decode = [ |
||
31 | |||
32 | ]; |
||
33 | |||
34 | /** |
||
35 | * Get the validation rules that apply to the request. |
||
36 | * |
||
37 | * @return array |
||
38 | */ |
||
39 | public function rules() |
||
45 | |||
46 | /** |
||
47 | * Determine if the user is authorized to make this request. |
||
48 | * |
||
49 | * @return bool |
||
50 | */ |
||
51 | public function authorize() |
||
57 | } |
||
58 |