2020-06-26 23:32:33 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Events;
|
|
|
|
|
2020-10-21 00:29:50 +00:00
|
|
|
use Illuminate\Broadcasting\Channel;
|
2020-06-26 23:32:33 +00:00
|
|
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
2020-10-21 00:29:50 +00:00
|
|
|
use Illuminate\Broadcasting\PresenceChannel;
|
|
|
|
use Illuminate\Broadcasting\PrivateChannel;
|
|
|
|
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
|
2020-06-26 23:32:33 +00:00
|
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
2020-10-21 00:29:50 +00:00
|
|
|
use App\User;
|
|
|
|
use App\Ban;
|
|
|
|
|
2020-06-26 23:32:33 +00:00
|
|
|
class UserBannedEvent
|
|
|
|
{
|
|
|
|
use Dispatchable, InteractsWithSockets, SerializesModels;
|
|
|
|
|
2020-10-21 00:29:50 +00:00
|
|
|
|
2020-06-26 23:32:33 +00:00
|
|
|
public $user;
|
|
|
|
|
|
|
|
public $ban;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new event instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function __construct(User $user, Ban $ban)
|
|
|
|
{
|
|
|
|
$this->user = $user;
|
|
|
|
$this->ban = $ban;
|
|
|
|
}
|
2020-10-21 00:29:50 +00:00
|
|
|
|
2020-06-26 23:32:33 +00:00
|
|
|
}
|