| Package Data | |
|---|---|
| Maintainer Username: | rui_mashita |
| Maintainer Contact: | takuya.wakisaka@moldweorp.com (Takuya Wakisaka) |
| Package Create Date: | 2015-02-06 |
| Package Last Update: | 2015-02-06 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-25 03:13:21 |
| Package Statistics | |
|---|---|
| Total Downloads: | 1,746 |
| Monthly Downloads: | 7 |
| Daily Downloads: | 0 |
| Total Stars: | 10 |
| Total Watchers: | 2 |
| Total Forks: | 6 |
| Total Open Issues: | 0 |
Add rui_mashita/laravel-dblib-odbc-sqlserver as a requirement to composer.json:
{
"require": {
"rui_mashita/laravel-dblib-odbc-sqlserver": "dev-master"
}
}
service provider registration in you app.php file under app\config path from Laravel project root folder.
'DblibOdbcSqlServer\Database\ServiceProvider',
Finally be sure to add the odbc driver with connection information to the config/database.php file like so:
'connections' => array(
// .. Existing config here ..
// ODBC config example
'odbc' => array(
'driver' => 'odbc',
'dsn' => 'Driver={ODBC Driver};',
'username' => 'foo',
'password' => 'bar',
'database' => '',
),
// DBLIB config example
'dblib' => array(
'driver' => 'dblib',
'host' => '172.16.0.223',
'port' => '1433',
'username' => 'sa',
'password' => 'password',
'database' => 'testtest',
),
),