Laravel Version
13.9.0
PHP Version
8.4.16
Database Driver & Version
MySQL 8.0.41
Description
I have global scope for my model:
And use queuable job where I'm using Illuminate\Foundation\Queue\Queueable trait for serializing/deserializing model:
And my global scope from the model is ignored: select * from saleswheresales.id = 8 limit 1
I investigated this problem and found that the vendor/laravel/framework/src/Illuminate/Queue/SerializesAndRestoresModelIdentifiers.php uses method:
Is it ok?
Steps To Reproduce
Please see the description below.
Laravel Version
13.9.0
PHP Version
8.4.16
Database Driver & Version
MySQL 8.0.41
Description
I have global scope for my model:
And use queuable job where I'm using
Illuminate\Foundation\Queue\Queueabletrait for serializing/deserializing model:And my global scope from the model is ignored:
select * fromsaleswheresales.id= 8 limit 1I investigated this problem and found that the
vendor/laravel/framework/src/Illuminate/Queue/SerializesAndRestoresModelIdentifiers.phpuses method:Is it ok?
Steps To Reproduce
Please see the description below.