| 1 | <?php |
||
| 7 | class DepartmentsValidator extends Request |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Determine if the application is on the api or not. |
||
| 11 | * |
||
| 12 | * If on the API = json errorbag |
||
| 13 | * if on the WEB = array messagebag |
||
| 14 | * @return bool |
||
| 15 | */ |
||
| 16 | public function wantsJson() |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Determine if the user is authorized to make this request. |
||
| 23 | * |
||
| 24 | * @return bool |
||
| 25 | */ |
||
| 26 | public function authorize() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the validation rules that apply to the request. |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | public function rules() |
||
| 43 | } |
||
| 44 |