registerAdminUser(); $this->registerSysMenuFuncAuth(); $this->registerSysRole(); $this->registerSysMenuFunc(); $this->registerAttachment(); $this->registerSysLog(); } /** * 注册adminUser */ protected function registerAdminUser() { $this->app->bind(SysAdminUserService::class, function () { return new SysAdminUserService(new SysAdminUserModel()); }); $this->app->bind(SysAdminUserFacade::class, function () { return app()->make(SysAdminUserService::class); }); } /** * 注册SysMenuFuncAuth */ protected function registerSysMenuFuncAuth() { $this->app->bind(SysMenuFuncAuthService::class, function () { return new SysMenuFuncAuthService(new SysMenuFuncAuthModel()); }); $this->app->bind(SysMenuFuncAuthFacade::class, function () { return app()->make(SysMenuFuncAuthService::class); }); } /** * 注册SysRole */ protected function registerSysRole() { $this->app->bind(SysRoleService::class, function () { return new SysRoleService(new SysRoleModel()); }); $this->app->bind(SysRoleFacade::class, function () { return app()->make(SysRoleService::class); }); } /**SysMenuFuncFacade * 注册SysMenuFunc */ protected function registerSysMenuFunc() { $this->app->bind(SysMenuFuncService::class, function () { return new SysMenuFuncService(new SysMenuFuncModel()); }); $this->app->bind(SysMenuFuncFacade::class, function () { return app()->make(SysMenuFuncService::class); }); } //注册附件 protected function registerAttachment(){ //公司信息 $this->app->bind(AttachmentService::class, function () { return new AttachmentService(new AttachmentModel()); }); $this->app->bind(AttachmentFacade::class, function () { return app()->make(AttachmentService::class); }); } /** * 注册系统日志 */ protected function registerSysLog() { $this->app->bind(SysLogService::class, function () { return new SysLogService(new SysLogModel()); }); $this->app->bind(SysLogFacade::class, function () { return app()->make(SysLogService::class); }); } }