Exemplo n.º 1
0
 /**
  * Get a database connection instance.
  *
  * @param  string $name
  *
  * @return \Illuminate\Database\Connection
  */
 public function connection($name = null)
 {
     return Connection::instance();
 }
Exemplo n.º 2
0
 /**
  * Get the database connection for the model.
  *
  * @return \Illuminate\Database\Connection
  */
 public function getConnection()
 {
     return Connection::instance();
 }