Why can't you run updates on models you use get() on?

Posted 1 year ago by mgcasts

For example, if you have

$model = Model::find(1)->get(['field']);
$model->field = 'foobar';
$model->save();

This won't work.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.