| 1 | <?php |
||
| 9 | class BaseRequest extends FormRequest |
||
| 10 | { |
||
| 11 | use SanitizesInput, PreparesCustomRulesForFormRequest; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Prepare the data for validation. |
||
| 15 | */ |
||
| 16 | protected function prepareForValidation() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Run any logic needed prior to validation running. |
||
| 27 | */ |
||
| 28 | protected function beforeValidation() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Get data to be validated from the request. |
||
| 34 | * |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | protected function validationData() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Transform the request data if necessary. |
||
| 44 | * |
||
| 45 | * @param array $data |
||
| 46 | * |
||
| 47 | * @return array |
||
| 48 | */ |
||
| 49 | protected function transform($data) |
||
| 53 | } |
||
| 54 |