Support the ongoing development of Laravel.io →
Input Database Eloquent
Last updated 2 years ago.
0

Also, I found this issue here: https://github.com/laravel/framework/issues/2114

And alexrussell has an excellent point about the workaround to simply do $model->foreign_id = null. Eloquent timestamps are not updated and Eloquent model events don't get fired either.

Last updated 2 years ago.
0

Yeah, and Taylor's bad mood strikes again. Very unproductive response and closing the issue just 'cause.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Jakobud jakobud Joined 31 Jan 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.