Inheritance: implements Illuminate\Database\ConnectionInterface
Esempio n. 1
0
 public function __construct()
 {
     $this->_db = \WeDevs\ORM\Eloquent\Database::instance();
 }
Esempio n. 2
0
 /**
  * Get a database connection instance.
  *
  * @param  string $name
  *
  * @return \Illuminate\Database\Connection
  */
 public function connection($name = null)
 {
     return Database::instance();
 }
Esempio n. 3
0
 /**
  * Get the registered name of the component.
  *
  * @return string
  */
 protected static function getFacadeAccessor()
 {
     return Database::instance();
 }
Esempio n. 4
0
 /**
  * Get the database connection for the model.
  *
  * @return \Illuminate\Database\Connection
  */
 public function getConnection()
 {
     return Database::instance();
 }