user->id)) { $targetAccountID = $event->user->id; } Log::alert('SECURITY (login): Detected failed authentication attempt!', [ 'targetAccountID' => $targetAccountID, 'existingAccount' => ($targetAccountID == 0) ? false : true, 'sourceIP' => request()->ip(), 'matchesAccountLastIP' => request()->ip() == $originalIP, 'sourceUserAgent' => request()->userAgent(), ]); } }