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