Getting error for connecting sybase with laravel

  laravel, laravel-4, laravel-8, php

Below error, I’m getting while accessing web service call via postman Sybase DB,

Call to undefined function AbramOdbcodbc_connect()

Below configuration I applied;

composer.json

"require": {
    "php": "^7.2",
    "ext-curl": "*",
    "ext-json": "*",
    "abram/laravel-odbc": "dev-master",
    "agomez/laravel-odbc-driver": "^1.0",
     }

database.php

 'sybase' => [
        'driver' => 'odbc',
        'dsn'  => '*****',
        'host' => env('DB_HOST','*****'),
        'port' => env('DB_PORT','*****'),
        'database' => env('DB_DATABASE'),
        'username' => env('DB_USERNAME'),
        'password' => env('DB_PASSWORD'),
        'prefix' => '',
    ],

Source: Laravel

Leave a Reply