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