for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Repositories;
use App\Models\Playlist;
use App\Repositories\Traits\ByCurrentUser;
use Illuminate\Support\Collection;
class PlaylistRepository extends AbstractRepository
{
use ByCurrentUser;
public function getModelClass(): string
return Playlist::class;
}
public function getAllByCurrentUser(): Collection
return $this->byCurrentUser()->orderBy('name')->get();