guard('contact')->user()->company->enabled_modules & PortalComposer::MODULE_INVOICES; } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'notes' => 'required|bail|', 'amount' => 'required|bail|gte:minimum_amount', 'minimum_amount' => '', ]; } public function prepareForValidation() { $input = $this->all(); $this->replace($input); } }