feat: add many playlist for music
This commit is contained in:
@@ -73,9 +73,9 @@ public function show($id)
|
||||
'subcategories',
|
||||
'image',
|
||||
'musics' => function($q) {
|
||||
$q->where('is_active', true)
|
||||
$q->where('music.is_active', true)
|
||||
->with(['image', 'tags'])
|
||||
->orderBy('order');
|
||||
->orderBy('music_playlist.order');
|
||||
},
|
||||
'comments' => function($q) { // Add comments relationship
|
||||
$q->with('user')->latest()->limit(10);
|
||||
|
||||
Reference in New Issue
Block a user