/**
  * Bootstrap the Application events.
  *
  * @return void
  */
 public function boot()
 {
     $db = $this->app['db'];
     $events = $this->app['events'];
     // Setup the ORM Model.
     Model::setConnectionResolver($db);
     Model::setEventDispatcher($events);
     // Setup the (basic) Model.
     BasicModel::setConnectionResolver($db);
     // Setup the legacy Database Helper.
     Database::setConnectionResolver($db);
 }