user()->can('create', ENTITY_PAYMENT_TERM); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { $rules = [ 'num_days' => 'required|numeric|unique:payment_terms', ]; return $rules; } }