mirror of
https://github.com/koel/koel
synced 2024-12-26 04:23:05 +00:00
21 lines
414 B
PHP
21 lines
414 B
PHP
<?php
|
|
|
|
namespace App\Repositories;
|
|
|
|
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();
|
|
}
|
|
}
|