public function booksWhereHasMyComments()
{
return $this->hasManyThrough(Book::class, Comment::class);
}
$user->booksWhereHasMyComments()
->with(['comments' => function ($query) use ($user) {
$query->where('user_id', $user->id);
}])
->get();