FEATURE #1451: add logging to all actions in widget management

This commit is contained in:
Michal Kváček
2016-02-15 14:30:00 +01:00
parent b344c928b4
commit c75a6bd364
21 changed files with 276 additions and 203 deletions
+15 -15
View File
@@ -2,31 +2,31 @@
namespace App\Events;
use App\Events\Event;
use App\Models\Widget;
use App\Models\WidgetArea;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
class RemoveWidgetFromArea extends Event
{
use SerializesModels;
/**
* @var Widget
*/
public $widget;
/**
* @var WidgetArea
*/
public $widgetArea;
/**
* Create a new event instance.
*
* @return void
* @param Widget $widget
* @param WidgetArea $widgetArea
*/
public function __construct()
public function __construct(Widget $widget, WidgetArea $widgetArea)
{
//
}
/**
* Get the channels the event should be broadcast on.
*
* @return array
*/
public function broadcastOn()
{
return [];
$this->widget = $widget;
$this->widgetArea = $widgetArea;
}
}