laravel/framework — pull request #2622 by Anahkiasen (2013-11-02 16:41:36+00:00)
Title: Add Connection::setPdo

As PDO doesn't have a `close` method, the only way to actively close a PDO connection is to destroy the object holding said connection or set it to `null` – which was currently impossible.

This is not as much for live applications than for testing where hitting a lot of routes causes a `Too many connections` error which can thus be solved by a `DB::connection()->setPdo(null)` in the tearDown.