fix: correct relationship key for academic advisor in StudentController

This commit is contained in:
Yoga Pangestu 2026-08-21 14:30:29 +07:00
parent 3f2fe8e935
commit 5bfbf0d388

View File

@ -48,7 +48,7 @@ public function store(StudentRequest $request): RedirectResponse
public function edit(User $user): Response
{
$user->load(['profile', 'student.department', 'student.advisor.user.profile']);
$user->load(['profile', 'student.department', 'student.academicAdvisor.user.profile']);
return Inertia::render('admin/users/students/edit', [
'user' => $user,