<?php namespace App\Events; class DestoryOrder { /** * Create a new event instance. * * @return void */ public $data; public function __construct($data) { $this->data=$data; } /** * Get the channels the event should broadcast on. * * @return \Illuminate\Broadcasting\Channel|array */ }