FEATURE #1451: add logging to all actions in widget management
This commit is contained in:
+15
-15
@@ -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 AssignWidget 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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,31 +2,25 @@
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use App\Events\Event;
|
||||
use App\Models\Widget;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
|
||||
|
||||
class CreateNewWidget extends Event
|
||||
{
|
||||
use SerializesModels;
|
||||
/**
|
||||
* @var Widget
|
||||
*/
|
||||
public $widget;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @return void
|
||||
* @param Widget $widget
|
||||
*/
|
||||
public function __construct()
|
||||
public function __construct(Widget $widget)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the channels the event should be broadcast on.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function broadcastOn()
|
||||
{
|
||||
return [];
|
||||
$this->widget = $widget;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,31 +2,24 @@
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use App\Events\Event;
|
||||
use App\Models\WidgetArea;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
|
||||
|
||||
class CreateNewWidgetArea extends Event
|
||||
{
|
||||
use SerializesModels;
|
||||
/**
|
||||
* @var WidgetArea
|
||||
*/
|
||||
public $widgetArea;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @return void
|
||||
* @param WidgetArea $widgetArea
|
||||
*/
|
||||
public function __construct()
|
||||
public function __construct(WidgetArea $widgetArea)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the channels the event should be broadcast on.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function broadcastOn()
|
||||
{
|
||||
return [];
|
||||
$this->widgetArea = $widgetArea;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,31 +2,25 @@
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use App\Events\Event;
|
||||
use App\Models\WidgetArea;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
|
||||
|
||||
class DeleteWidgetArea extends Event
|
||||
{
|
||||
use SerializesModels;
|
||||
/**
|
||||
* @var WidgetArea
|
||||
*/
|
||||
public $widgetArea;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @return void
|
||||
* @param WidgetArea $widgetArea
|
||||
*/
|
||||
public function __construct()
|
||||
public function __construct(WidgetArea $widgetArea)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the channels the event should be broadcast on.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function broadcastOn()
|
||||
{
|
||||
return [];
|
||||
$this->widgetArea = $widgetArea;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,31 +2,24 @@
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use App\Events\Event;
|
||||
use App\Models\Widget;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
|
||||
|
||||
class EditWidget extends Event
|
||||
{
|
||||
use SerializesModels;
|
||||
/**
|
||||
* @var Widget
|
||||
*/
|
||||
public $widget;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @return void
|
||||
* @param Widget $widget
|
||||
*/
|
||||
public function __construct()
|
||||
public function __construct(Widget $widget)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the channels the event should be broadcast on.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function broadcastOn()
|
||||
{
|
||||
return [];
|
||||
$this->widget = $widget;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,21 +3,26 @@
|
||||
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.
|
||||
*
|
||||
* @return void
|
||||
* @param WidgetArea $widgetArea
|
||||
*/
|
||||
public function __construct()
|
||||
public function __construct(WidgetArea $widgetArea)
|
||||
{
|
||||
//
|
||||
$this->widgetArea = $widgetArea;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user