| 1 | <?php |
||
| 8 | abstract class ResourceRequest extends FormRequest |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Type of resource. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $resourceType = 'resource'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Determine if the user is authorized to make this request. |
||
| 19 | * |
||
| 20 | * @return bool |
||
| 21 | */ |
||
| 22 | public function authorize() |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Get the validation rules that apply to the request. |
||
| 29 | * |
||
| 30 | * @return array |
||
| 31 | */ |
||
| 32 | protected function processRules(Request $request, $nameRule) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Error messages for validation rules. |
||
| 48 | * |
||
| 49 | * @return array |
||
| 50 | */ |
||
| 51 | public function messages() |
||
| 61 | } |
||
| 62 |