isWholesaler(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'description.name' => 'required|string|min:2|max:100', 'active' => 'sometimes|accepted', 'model' => 'sometimes|string', // @todo Check that it is a valid model type 'model_id' => 'sometimes|int', // @todo Check that it is a valid model type 'accounting' => 'nullable|string', ]; } }