user()->can('create', Invoice::class); } public function rules() { //$this->sanitize(); return [ 'client_id' => 'required', // 'invoice_type_id' => 'integer', // 'documents' => 'mimes:png,ai,svg,jpeg,tiff,pdf,gif,psd,txt,doc,xls,ppt,xlsx,docx,pptx', ]; } }