From 345536d5e404bb4584d48550c0f0756ff3366ef5 Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Tue, 7 Mar 2023 20:16:41 +0100 Subject: [PATCH] podcast episodes view added --- app/Http/Livewire/Library/PodcastEpisodesTable.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Livewire/Library/PodcastEpisodesTable.php b/app/Http/Livewire/Library/PodcastEpisodesTable.php index 68a58fcf..94105a9a 100644 --- a/app/Http/Livewire/Library/PodcastEpisodesTable.php +++ b/app/Http/Livewire/Library/PodcastEpisodesTable.php @@ -43,6 +43,8 @@ class PodcastEpisodesTable extends Component fn($query, $search) => $query ->where('data->title', 'ilike', "%{$search}%") ->orWhere('data->description', 'ilike', "%{$search}%") + ->orWhereHas('podcast', + fn($query) => $query->where('data->title', 'ilike', "%{$search}%")) ) ->orderByDesc('data->datePublished') ->paginate($this->perPage),