Skip to content

Instantly share code, notes, and snippets.

@GuilhermeBarile
Last active March 1, 2016 01:05
Show Gist options
  • Save GuilhermeBarile/29275534b0ef66fafead to your computer and use it in GitHub Desktop.
Save GuilhermeBarile/29275534b0ef66fafead to your computer and use it in GitHub Desktop.
<?php
if (!class_exists('db')) {
class db implements Illuminate\Database\ConnectionResolverInterface {
/**
* Get a database connection instance.
*
* @param string $name
* @return \Illuminate\Database\ConnectionInterface
*/
public function connection($name = null)
{
// TODO: Implement connection() method.
}
/**
* Get the default connection name.
*
* @return string
*/
public function getDefaultConnection()
{
// TODO: Implement getDefaultConnection() method.
}
/**
* Set the default connection name.
*
* @param string $name
* @return void
*/
public function setDefaultConnection($name)
{
// TODO: Implement setDefaultConnection() method.
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment