podcast episodes view added

This commit is contained in:
HolgerHatGarKeineNode
2023-03-07 20:16:41 +01:00
parent be8c7d03a7
commit 345536d5e4

View File

@@ -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),