join('podcast_user', static function (JoinClause $join) use ($user): void { $join->on('podcasts.id', 'podcast_user.podcast_id') ->where('user_id', $user->id); }); } }