33 lines
589 B
PHP
33 lines
589 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Models\Widget;
|
|
use App\Models\WidgetArea;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class AssignWidget extends Event
|
|
{
|
|
use SerializesModels;
|
|
/**
|
|
* @var Widget
|
|
*/
|
|
public $widget;
|
|
/**
|
|
* @var WidgetArea
|
|
*/
|
|
public $widgetArea;
|
|
|
|
/**
|
|
* Create a new event instance.
|
|
*
|
|
* @param Widget $widget
|
|
* @param WidgetArea $widgetArea
|
|
*/
|
|
public function __construct(Widget $widget, WidgetArea $widgetArea)
|
|
{
|
|
$this->widget = $widget;
|
|
$this->widgetArea = $widgetArea;
|
|
}
|
|
}
|