'brute_force_login_alert', 'email' => $this->email, 'ip' => $this->ip, 'failures' => $this->failures, 'window_minutes' => $this->windowMinutes, ]; } public function toMail(object $notifiable): MailMessage { return (new MailMessage) ->subject('TAKEONE — suspicious login attempts') ->greeting('Possible brute-force login attempt') ->line("The address {$this->email} has had {$this->failures} failed login attempts in the last {$this->windowMinutes} minutes.") ->line("Most recent attempt came from {$this->ip}.") ->line('Review the audit log and consider forcing a password reset if this account looks real.') ->action('Open Admin', url('/admin/audit-logs')); } }