/**
  * @return void
  */
 public function register()
 {
     Model::clearBootedModels();
     $this->registerEloquentFactory();
     $this->registerQueueableEntityResolver();
     $this->app->singleton('db.factory', function ($app) {
         return new ConnectionFactory($app);
     });
     $this->app->singleton('db', function ($app) {
         return new DatabaseManager($app, $app['db.factory']);
     });
     $this->app->bind('db.connection', function ($app) {
         return $app['db']->connection();
     });
 }