. */ namespace App\Events; use App\Ban; use App\User; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; class UserBannedEvent { use Dispatchable, InteractsWithSockets, SerializesModels; public $user; public $ban; /** * Create a new event instance. * * @return void */ public function __construct(User $user, Ban $ban) { $this->user = $user; $this->ban = $ban; } }