yajra / laravel-oci8

Oracle DB driver for Laravel via OCI8

Home Page:https://yajrabox.com/docs/laravel-oci8

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OCI_DEFAULT Undefined

njzabala opened this issue · comments

Summary of problem or feature request

Still receiving Error: Undefined constant "Yajra\Pdo\OCI_DEFAULT" after installing OCI 8 when querying from model. Works on Windows 11 but not working on Ubuntu 22.04. Already added the environment variables and tested if OCI8 is enabled on PHP.

Code snippet of problem

$sessionMode = array_key_exists('session_mode', $options) ? $options['session_mode'] : OCI_DEFAULT;

Query Sample

$data = TestModel::where('unique_id', '=', '12345')->get();

System details

  • Operating System: Ubuntu 22.04
  • PHP Version: 8.1
  • Laravel Version: 10
  • Laravel-OCI8 Version: 3.2.1

This issue is stale because it has been open for 30 days with no activity.

This issue was closed because it has been inactive for 7 days since being marked as stale.