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

mplemented the "setClientIdentifier" in the model

maxdevis opened this issue · comments

commented

hi,
how implemented the "setClientIdentifier" in the model ?

br
Max

Haven't tried yet but I think you can do this:

$user = User::first();
$pdo = $user->getConnection()->getPdo();
$pdo->setClientIdentifier($user->name)
commented

thank you for the answer, i will try to implement it in a basic model

br
max

commented

hi,
i put:

$pdo = $model->getConnection()->getPdo();
$pdo->setClientIdentifier(Auth::id());
but have this error:
message: Call to undefined method Yajra\Pdo\Oci8::setClientIdentifier()

br
Max