<?phpnamespaceModules\Category\Http\Requests;useIlluminate\Foundation\Http\FormRequest;classCreateCategoryRequestextendsFormRequest{/** * Get the validation rules that apply to the request. * * @returnarray */publicfunctionrules() {return ['name'=>'required|max:120|min:2|regex:/^[ا-یa-zA-Z0-9\-۰-۹ء-ي., ]+$/u','description'=>'required|max:1200|min:2|regex:/^[ا-یa-zA-Z0-9\-۰-۹ء-ي., ]+$/u', ]; }/** * Determine if the user is authorized to make this request. * * @returnbool */publicfunctionauthorize() {returntrue; }}