If you have a belongsTo()
relationship, you can update the Eloquent relationship data in the same sentence:
1// if Project -> belongsTo(User::class)2$project->user->update(['email' => 'some@gmail.com']);
If you have a belongsTo()
relationship, you can update the Eloquent relationship data in the same sentence:
1// if Project -> belongsTo(User::class)2$project->user->update(['email' => 'some@gmail.com']);