ODBC Driver for Laravel 5.5+
- The composer.json file use the "auto discover" function so you must have laravel ^5.5
- You must create a ODBC in your operating system
composer require agomez/laravel-odbc-driver
composer update
'odbc' => [
'driver' => 'odbc',
'dsn' => 'dns name',
'grammar' => 'DB2',
'username' => 'username',
'password' => 'password',
'database' => 'database'
],
@php
$array = DB::connection('odbc')->select('raw sql query');
dd($array);
@endphp
- Cody Covey @ https://github.com/ccovey/odbc-driver