Skip to content

Commit

Permalink
Add note about accessing raw PDO instances. Closes laravel#255.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 28, 2013
1 parent bc21c79 commit e221279
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions database.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ When using multiple connections, you may access them via the `DB::connection` me

$users = DB::connection('foo')->select(...);

You may also access the raw, underlying PDO instance:

$pdo = DB::connection()->getPdo();

Sometimes you may need to reconnect to a given database:

DB::reconnect('foo');

0 comments on commit e221279

Please sign in to comment.