fix: correct relationship key for academic advisor in StudentController
This commit is contained in:
parent
3f2fe8e935
commit
5bfbf0d388
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user