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
317 B
15 lines
317 B
<?php
|
|
|
|
namespace App\Domains\Academic\Queries\Selection;
|
|
|
|
use App\Domains\Academic\Models\Faculty;
|
|
use Illuminate\Support\Collection;
|
|
|
|
class SelectFacultyQuery
|
|
{
|
|
public static function fetch(): Collection
|
|
{
|
|
return once(fn () => Faculty::all(['id', 'name'])
|
|
->pluck('name', 'id'));
|
|
}
|
|
}
|
|
|