init commit

This commit is contained in:
amikhaylov
2026-04-28 22:22:46 +03:00
parent 3788458f01
commit af933e8397
130 changed files with 4072 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
namespace App\Models\Loaders;
use App\Models\ORM\Track;
class PlaylistLoader
{
public function getPlaylist(): array
{
$data = Track::select(
"Track.Name as Track",
"Performer.Name as Performer"
)->join('Performer', function ($join) {
$join->on('Performer.Id', "=", "Track.Performer")
->where('Performer.DeleteDate', NULL);
})->orderBy('Performer')->get();
return $data ? $data->toArray() : [];
}
}