isWholesaler(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules(Request $request): array { return Supplier::offeringTypeClass($request->offering_type ?? '')->validation(); } }