mirror of
https://github.com/koel/koel
synced 2024-11-15 00:47:18 +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();
|
|
}
|
|
}
|