Null Safety Image Path
This commit is contained in:
parent
3f4e4990c6
commit
112f68a1c4
|
@ -36,7 +36,7 @@ public function update(Request $request)
|
|||
$user->nim = $request->input('nim');
|
||||
$user->semester = $request->input('semester');
|
||||
$user->angkatan = $request->input('angkatan');
|
||||
$user->foto = $imagePath;
|
||||
$user->foto = $imagePath ?? null;
|
||||
$user->update();
|
||||
|
||||
return redirect('/dashboard')->with('success', 'Profile updated successfully1');
|
||||
|
|
Loading…
Reference in New Issue