/**
  * 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);
 }
 /**
  * Bootstrap the application events.
  *
  * @return void
  */
 public function boot()
 {
     SimpleModel::setConnectionResolver($this->app['db']);
     Model::setConnectionResolver($this->app['db']);
     Model::setEventDispatcher($this->app['events']);
 }