public function register() { $this->app->singleton('dc', function ($app) { return new DataCollector($app); }); }