TIP 19 / 36

Update Parent in One Line.

If you have a belongsTo() relationship, you can update the Eloquent relationship data in the same sentence:

php
// The Project model belongs to User:
$project->user->update(['email' => 'some@gmail.com']);