File "UserRegistrationEvent.php"
Full path: /home/qooetu/costes.qooetu.com/app/Events/UserRegistrationEvent.php
File
size: 882 B (882 B bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor &nnbsp; Back
<?php
namespace App\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use App\User;
class UserRegistrationEvent
{
use InteractsWithSockets, SerializesModels;
public $user;
public $data;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct(User $user,$data=false)
{
$this->user=$user;
$this->data=$data;
}
/**
* Get the channels the event should broadcast on.
*
* @return Channel|array
*/
public function broadcastOn()
{
return new PrivateChannel('channel-name');
}
}