<?phpnamespaceOnestartup\ProductResource\Requests;useIlluminate\Foundation\Http\FormRequest;classRequestCategoryextendsFormRequest{/** * Determine if the user is authorized to make this request. * * @return bool */publicfunctionauthorize(){returntrue;}/** * Get the validation rules that apply to the request. * * @return array */publicfunctionrules(){return['name'=>'required|max:355','slug'=>'required|max:255','description'=>'max:455','active'=>'required'];}}