feat: add many playlist for music
This commit is contained in:
@@ -74,7 +74,7 @@ public function show($id)
|
||||
'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