#90 - wip
This commit is contained in:
parent
25c13c027e
commit
d80ba8f41b
@ -24,13 +24,11 @@ class VacationLimitController extends Controller
|
|||||||
|
|
||||||
$limits = $yearPeriod
|
$limits = $yearPeriod
|
||||||
->vacationLimits()
|
->vacationLimits()
|
||||||
->with("user")
|
->with("user.profile")
|
||||||
->has("user")
|
->has("user")
|
||||||
->get()
|
->get()
|
||||||
->sortBy([
|
->sortBy(fn(VacationLimit $limit): string => "{$limit->user->profile->last_name} {$limit->user->profile->first_name}")
|
||||||
"last_name" => "asc",
|
->values();
|
||||||
"first_name" => "asc",
|
|
||||||
]);
|
|
||||||
|
|
||||||
$limitsResource = $limits->map(fn(VacationLimit $limit) => [
|
$limitsResource = $limits->map(fn(VacationLimit $limit) => [
|
||||||
"id" => $limit->id,
|
"id" => $limit->id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user