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 UserRemoved.
*
* @package Acacha\Users\Events
*/
class UserRemoved implements ShouldBroadcast
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $users;
* UserRemoved constructor.
* @param $users
public function __construct($users)
$this->users = $users;
}
* Get the channels the event should broadcast on.
* @return Channel|array
public function broadcastOn()
return new PrivateChannel('acacha-users');