A database driver for Laravel 4 that provides support for generic PDO drivers
Add a requirement for the package
{
"require": {
"lamb/laravel-generic-database": "dev-master"
}
}
Add it to the list of providers
'providers' => array(
'Lamb\LaravelGenericDatabase\GenericDatabaseServiceProvider'
)
Add a connection using the generic database driver
'odbc' => array(
'driver' => 'generic',
'dsn' => 'odbc:DRIVER={IBM DB2 ODBC DRIVER};HOSTNAME=localhost;PORT=50000;DATABASE=SAMPLE;PROTOCOL=TCPIP;UID=db2inst1;PWD=ibmdb2;'
),
Released under the MIT license