| 1 | <?php namespace Arcanedev\Support\Http; |
||
| 13 | abstract class FormRequest extends BaseFormRequest |
||
| 14 | { |
||
| 15 | /* ----------------------------------------------------------------- |
||
| 16 | | Main Methods |
||
| 17 | | ----------------------------------------------------------------- |
||
| 18 | */ |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Determine if the user is authorized to make this request. |
||
| 22 | * |
||
| 23 | * @return bool |
||
| 24 | */ |
||
| 25 | public function authorize() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get the validation rules that apply to the request. |
||
| 32 | * |
||
| 33 | * @return array |
||
| 34 | */ |
||
| 35 | abstract public function rules(); |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Prepare the data for validation. |
||
| 39 | */ |
||
| 40 | 6 | protected function prepareForValidation() |
|
| 46 | } |
||
| 47 |