| 1 | <?php namespace Arcanesoft\Blog\Http\Requests\Admin\Categories; |
||
| 11 | class CreateCategoryRequest extends FormRequest |
||
| 12 | { |
||
| 13 | /* ------------------------------------------------------------------------------------------------ |
||
| 14 | | Properties |
||
| 15 | | ------------------------------------------------------------------------------------------------ |
||
| 16 | */ |
||
| 17 | /** |
||
| 18 | * Category validation rules. |
||
| 19 | * |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | protected $rules = [ |
||
| 23 | 'name' => 'required|min:3', |
||
| 24 | ]; |
||
| 25 | |||
| 26 | /* ------------------------------------------------------------------------------------------------ |
||
| 27 | | Main Functions |
||
| 28 | | ------------------------------------------------------------------------------------------------ |
||
| 29 | */ |
||
| 30 | /** |
||
| 31 | * Determine if the user is authorized to make this request. |
||
| 32 | * |
||
| 33 | * @return bool |
||
| 34 | */ |
||
| 35 | public function authorize() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Get the validation rules that apply to the request. |
||
| 42 | * |
||
| 43 | * @return array |
||
| 44 | */ |
||
| 45 | public function rules() |
||
| 49 | } |
||
| 50 |