<?phpnamespaceOnestartup\Shop\Requests;useIlluminate\Foundation\Http\FormRequest;classRequestProductInfoextendsFormRequest{/** * 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['unity'=>'required|max:355','purchase_price'=>'required|numeric','sale_price'=>'required|numeric','quantity'=>'required|integer','reserve_amount'=>'required|integer','product_id'=>'required|integer'];}}