Example #1
0
 /**
  * Prepare the database connection instance.
  *
  * @param  \KageNoNeko\OSM\ConnectionInterface $connection
  *
  * @return \KageNoNeko\OSM\ConnectionInterface
  */
 protected function prepare(ConnectionInterface $connection)
 {
     if ($this->app->bound('events')) {
         $connection->setEventDispatcher($this->app['events']);
     }
     return $connection;
 }