<?phpnamespaceOnestartup\ProductResource\Requests;useIlluminate\Foundation\Http\FormRequest;classRequestExtraFieldsextendsFormRequest{/** * 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['variable'=>'required|max:255','alias'=>'required|max:255','type'=>'required|max:255','active'=>'required|boolean'];}}