Closed mikebronner closed 5 months ago
Looks like with this particular issue Eloquent defers to the Builder, so in order to manage this we'd need to set it up on the model, change the attributes and then defer.
I'm currently just adding Laravel 9 support, but if you wanted to setup a PR, I can check today and merge.
Looks like with this particular issue Eloquent defers to the Builder, so in order to manage this we'd need to set it up on the model, change the attributes and then defer.
I'm currently just adding Laravel 9 support, but if you wanted to setup a PR, I can check today and merge.
Thanks Kirk, I'm a bit stumped by this ... I implemented a work-around to avoid firstOrNew
for the time bring.
Looks like with this particular issue Eloquent defers to the Builder, so in order to manage this we'd need to set it up on the model, change the attributes and then defer. I'm currently just adding Laravel 9 support, but if you wanted to setup a PR, I can check today and merge.
Thanks Kirk, I'm a bit stumped by this ... I implemented a work-around to avoid
firstOrNew
for the time bring.
I'm currently working on version 11 which is a complete rebuild of the entire system. I'll add a test for firstOrNew and see what's going on.
@mikebronner Try now on v11.
fails when using softDeletes: