38 lines
676 B
PHP
38 lines
676 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Events\Event;
|
|
use App\Models\WidgetArea;
|
|
use Illuminate\Queue\SerializesModels;
|
|
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
|
|
|
|
class EditWidgetArea extends Event
|
|
{
|
|
use SerializesModels;
|
|
/**
|
|
* @var WidgetArea
|
|
*/
|
|
public $widgetArea;
|
|
|
|
/**
|
|
* Create a new event instance.
|
|
*
|
|
* @param WidgetArea $widgetArea
|
|
*/
|
|
public function __construct(WidgetArea $widgetArea)
|
|
{
|
|
$this->widgetArea = $widgetArea;
|
|
}
|
|
|
|
/**
|
|
* Get the channels the event should be broadcast on.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function broadcastOn()
|
|
{
|
|
return [];
|
|
}
|
|
}
|