classUserSignUp{
useInteractsWithSockets, SerializesModels;
public $user;
/**
* Create a new event instance.
*
* @return void
*/publicfunction__construct(User $user){
$this->user = $user;
}
/**
* Get the channels the event should broadcast on.
*
* @return Channel|array
*/publicfunctionbroadcastOn(){
returnnew PrivateChannel('channel-name');
}
FatalThrowableError in UserSignUp.php line 21:
Type error: Argument 1 passed to App\Events\UserSignUp::__construct() must be an instance of App\Events\User, instance of App\User given