#27 - separate fields for name and surname
This commit is contained in:
@@ -14,8 +14,13 @@ class VacationLimitController extends Controller
|
||||
{
|
||||
public function edit(): Response
|
||||
{
|
||||
$limits = VacationLimit::query()
|
||||
->with("user")
|
||||
->orderByUserField("last_name")
|
||||
->get();
|
||||
|
||||
return inertia("VacationLimits", [
|
||||
"limits" => VacationLimitResource::collection(VacationLimit::query()->with("user")->get()),
|
||||
"limits" => VacationLimitResource::collection($limits),
|
||||
]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user