Work on #61
This commit is contained in:
Matt Young 2024-08-07 16:27:00 -05:00
parent ed271fce82
commit 04fb2ee3cf
1 changed files with 3 additions and 1 deletions

View File

@ -74,12 +74,14 @@ class UserController extends Controller
'is_tab' => $validData['is_tab'],
]);
$user->refresh();
$logged_school = $user->school_id ? $user->school->name : 'No School';
$message = 'Updated user #'.$user->id.' - '.$oldEmail
.'<br>Name: '.$user->full_name()
.'<br>Email: '.$user->email
.'<br>Cell Phone: '.$user->cell_phone
.'<br>Judging Pref: '.$user->judging_preference
.'<br>School: '.$user->school->name ?? 'none';
.'<br>School: '.$logged_school;
AuditLogEntry::create([
'user' => auth()->user()->email,
'ip_address' => request()->ip(),