#90 - user profile #125

Merged
Baakoma merged 19 commits from #90-user-profile into main 2022-04-14 11:58:45 +02:00
Showing only changes of commit d80ba8f41b - Show all commits

View File

@@ -24,13 +24,11 @@ class VacationLimitController extends Controller
$limits = $yearPeriod
->vacationLimits()
->with("user")
->with("user.profile")
->has("user")
->get()
->sortBy([
"last_name" => "asc",
"first_name" => "asc",
]);
->sortBy(fn(VacationLimit $limit): string => "{$limit->user->profile->last_name} {$limit->user->profile->first_name}")
->values();
$limitsResource = $limits->map(fn(VacationLimit $limit) => [
"id" => $limit->id,