26 lines
397 B
PHP
26 lines
397 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Models\User;
|
|
|
|
class EncryptUserPassword extends Event
|
|
{
|
|
public $user;
|
|
|
|
public $raw;
|
|
|
|
/**
|
|
* Create a new event instance.
|
|
*
|
|
* @param string $raw the raw password before encrypted
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct($raw, User $user)
|
|
{
|
|
$this->raw = $raw;
|
|
$this->user = $user;
|
|
}
|
|
}
|