1 | <?php |
||
20 | class UserRegistrationRequest extends FormRequest |
||
21 | { |
||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | public function forbiddenResponse() |
||
32 | |||
33 | /** |
||
34 | * Determine if the user is authorized to make this request. |
||
35 | * |
||
36 | * @return bool |
||
37 | */ |
||
38 | public function authorize() |
||
42 | |||
43 | /** |
||
44 | * Get the validation rules that apply to the request. |
||
45 | * |
||
46 | * @return array |
||
47 | */ |
||
48 | public function rules() |
||
56 | } |
||
57 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.