The new whereBelongsTo method was shipped a few days ago.

It allows you to remove  BelongsTo foreign key names from your queries, and use the relationship method as a single source of truth instead.

// change
$query->where("post_id",$post->id);

// to
$query->whereBelongsTo($post);

// or
$query->whereBelongsTo($post)
	->whereBelongsTo($tag)
	->whereBelongsTo($category);