src/SourceQuartet/VisitorLog/VisitorLogServiceProvider.php
public function register()
    {
        $this->mergeConfigFrom(
            dirname(dirname(__DIR__)).'/config/visitor-log.php', 'visitor-log'
        );

        $this->app->singleton('visitor.repository', function($app) {
            return new VisitorRepository(new VisitorModel(), $app['db']);
        });

        $this->app->singleton('visitor', function($app) {
            return new Visitor($app['visitor.repository'], $app['request'], $app['config']);
        });
    }
public function register()
    {
        $this->mergeConfigFrom(
            dirname(dirname(__DIR__)).'/config/visitor-log.php', 'visitor-log'
        );

        $this->app->singleton('visitor.repository', function($app) {
            return new VisitorRepository(new VisitorModel(), $app['db']);
        });

        $this->app->singleton('visitor', function($app) {
            return new Visitor($app['visitor.repository'], $app['request'], $app['config']);
        });
    }
Register the service provider.

@return void