mirror of
https://github.com/koel/koel
synced 2024-11-24 21:23:06 +00:00
21 lines
419 B
PHP
21 lines
419 B
PHP
<?php
|
|
|
|
namespace App\Repositories;
|
|
|
|
use App\Models\Song;
|
|
use App\Repositories\Traits\Searchable;
|
|
|
|
class ArtistRepository extends AbstractRepository
|
|
{
|
|
use Searchable;
|
|
|
|
/** @return array<int> */
|
|
public function getNonEmptyArtistIds(): array
|
|
{
|
|
return Song::select('artist_id')
|
|
->groupBy('artist_id')
|
|
->get()
|
|
->pluck('artist_id')
|
|
->toArray();
|
|
}
|
|
}
|