public function register() { $this->app->singleton(['xe.counter' => Factory::class], function ($app) { return new Factory($app['xe.interception']); }); }