private function getDatabase()
 {
     $conn = new ConnectionFactory($this->app);
     $manager = new DatabaseManager($this->app, $conn);
     $manager->setDefaultConnection('sqlite');
     return array($conn, $manager);
 }
Esempio n. 2
0
 /**
  * Set the default connection name.
  *
  * @param string $name
  * @return void 
  * @static 
  */
 public static function setDefaultConnection($name)
 {
     \Illuminate\Database\DatabaseManager::setDefaultConnection($name);
 }