Hi @ligonsker , that's quite simple... your application can listen to that event.
Maybe you want to notify an admin, or you want to send the user a confirmation email or something like that...
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
When resseting password with Breeze, it dispatches the PasswordReset event:
event(new PasswordReset($user));:
<?php
namespace Illuminate\Auth\Events;
use Illuminate\Queue\SerializesModels;
class PasswordReset
{
use SerializesModels;
/**
* The user.
*
* @var \Illuminate\Contracts\Auth\Authenticatable
*/
public $user;
/**
* Create a new event instance.
*
* @param \Illuminate\Contracts\Auth\Authenticatable $user
* @return void
*/
public function __construct($user)
{
$this->user = $user;
}
}
What is the use for it?
Hi @ligonsker , that's quite simple... your application can listen to that event.
Maybe you want to notify an admin, or you want to send the user a confirmation email or something like that...
Please or to participate in this conversation.