mplemented the "setClientIdentifier" in the model
maxdevis opened this issue · comments
Max commented
hi,
how implemented the "setClientIdentifier" in the model ?
br
Max
Arjay Angeles commented
Haven't tried yet but I think you can do this:
$user = User::first();
$pdo = $user->getConnection()->getPdo();
$pdo->setClientIdentifier($user->name)
Max commented
thank you for the answer, i will try to implement it in a basic model
br
max
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