<?php
namespace App\Events;
use App\Models\User;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class NewUserEvent
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $user;
public $password;
public function __construct(User $user, $password)
{
$this->user = $user;
$this->password = $password;
}
}