Package Data | |
---|---|
Maintainer Username: | greglamb |
Maintainer Contact: | email@greglamb.me (Greg Lamb) |
Package Create Date: | 2013-04-18 |
Package Last Update: | 2014-06-11 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-22 03:10:02 |
Package Statistics | |
---|---|
Total Downloads: | 166 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
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