for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Acacha\Users\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
/**
* Class UserCreated.
*
* @package Acacha\Users\Events
*/
class UserCreated implements ShouldBroadcast
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $user;
* UserCreated constructor.
* @param $user
public function __construct($user)
$this->user = $user;
}
* Get the channels the event should broadcast on.
* @return Channel|array
public function broadcastOn()
return new PrivateChannel('acacha-users');