koel/app/Builders/AlbumBuilder.php

15 lines
253 B
PHP
Raw Normal View History

<?php
namespace App\Builders;
use App\Models\Album;
use Illuminate\Database\Eloquent\Builder;
class AlbumBuilder extends Builder
{
public function isStandard(): static
{
return $this->whereNot('albums.id', Album::UNKNOWN_ID);
}
}