Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

koel/koel

16858 stars
1 code files
View koel/koel on GitHub

app/Repositories/AlbumRepository.php

Open in GitHub
use App\Models\Song;
use App\Repositories\Traits\Searchable;
 
class AlbumRepository extends AbstractRepository
{
use Searchable;
 
/** @return array<int> */
public function getNonEmptyAlbumIds(): array
{
return Song::select('album_id')
->groupBy('album_id')
->get()
->pluck('album_id')
->toArray();
}
}

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.