We can now make comparisons between related models without further database access.
1// BEFORE: the foreign key is taken from the Post model2$post->author_id === $user->id;3 4// BEFORE: An additional request is made to get the User model from the Author relationship5$post->author->is($user);6 7// AFTER8$post->author()->is($user);
Tip given by @PascalBaljet