feat: add many playlist for music

This commit is contained in:
2026-06-01 00:40:32 +03:30
parent 695efcc452
commit b3a7edf3a5
8 changed files with 162 additions and 51 deletions
@@ -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);