You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
307 B
15 lines
307 B
<?php
|
|
|
|
namespace App\Domains\Academic\Queries\Selection;
|
|
|
|
use App\Domains\Academic\Models\Term;
|
|
use Illuminate\Support\Collection;
|
|
|
|
class SelectTermQuery
|
|
{
|
|
public static function fetch(): Collection
|
|
{
|
|
return once(fn() => Term::all(['id', 'name'])
|
|
->pluck('name', 'id'));
|
|
}
|
|
}
|
|
|