public function register() { $this->app['avatar.manager'] = $this->app->share(function ($app) { return new AvatarManagerService(); }); }