| 1 | <?php  | 
            ||
| 7 | abstract class Request extends FormRequest  | 
            ||
| 8 | { | 
            ||
| 9 | /**  | 
            ||
| 10 | * Check if user is authorized to perform the action.  | 
            ||
| 11 | *  | 
            ||
| 12 | * @param string $resource  | 
            ||
| 13 | * @return bool  | 
            ||
| 14 | */  | 
            ||
| 15 | protected function authorizeResource($resource)  | 
            ||
| 23 | |||
| 24 | /**  | 
            ||
| 25 | * Check if request is for update or create.  | 
            ||
| 26 | * Editing will be identified if route parameter exists.  | 
            ||
| 27 | *  | 
            ||
| 28 | * @param string $resource  | 
            ||
| 29 | * @return bool  | 
            ||
| 30 | */  | 
            ||
| 31 | protected function isEditing($resource)  | 
            ||
| 35 | }  | 
            ||
| 36 |