protected function registerGroupRepository() { $this->app->singleton(['xe.user.groups' => UserGroupRepositoryInterface::class], function ($app) { return new UserGroupRepository(UserGroup::class); }); }