mirror of
https://github.com/koel/koel
synced 2024-12-25 12:03:06 +00:00
18 lines
395 B
PHP
18 lines
395 B
PHP
<?php
|
|
|
|
namespace App\Repositories;
|
|
|
|
use App\Models\Playlist;
|
|
use App\Repositories\Traits\ByCurrentUser;
|
|
use Illuminate\Support\Collection;
|
|
|
|
class PlaylistRepository extends AbstractRepository
|
|
{
|
|
use ByCurrentUser;
|
|
|
|
/** @return Collection|array<Playlist> */
|
|
public function getAllByCurrentUser(): Collection
|
|
{
|
|
return $this->byCurrentUser()->orderBy('name')->get();
|
|
}
|
|
}
|