This is a Laravel 5 class that I have at the location app/Database/OTF.php
and use to connect to different databases on the fly.
// Using the same host/password/etc, just changing databases
$otf = new App\Database\OTF(['database' => 'kittens']);
// Get the users table
$users = $otf->getTable('users');
// Find the first user in the table
$first_user = $users->first();
i'm stumped.
I'm hoping you have some ideas.
this works and I get:
awesome right?
Other functions works too like $link->count() and $link->pluck('code')
But functions to get more rows or all rows yields a PDO exception:
things like:
or
or
Am I daft?
Thanks in advance.
PS: I'm developing OSX El Capitan. Although the error is a PDO exception, its being reported back to the browser as a proxy
Warren