feat: add many playlist for music
This commit is contained in:
@@ -82,7 +82,7 @@ public function show($id)
|
||||
{
|
||||
$category = MusicCategory::with(['image', 'playlists' => function($q) {
|
||||
$q->with(['image', 'musics' => function($q2) {
|
||||
$q2->where('is_active', true)->with('image')->orderBy('order');
|
||||
$q2->where('music.is_active', true)->with('image')->orderBy('music_playlist.order');
|
||||
}])->where('is_active', true)->orderBy('order');
|
||||
}])->findOrFail($id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user