user()->can('create', Company::class); } public function rules() { //$this->sanitize(); return [ 'name' => 'required', 'logo' => 'mimes:jpeg,jpg,png,gif|max:10000', // max 10000kb // 'documents' => 'mimes:png,ai,svg,jpeg,tiff,pdf,gif,psd,txt,doc,xls,ppt,xlsx,docx,pptx', ]; } }