ldc-legaulois/app/Events/NewNotification.php
2021-03-03 12:02:44 +01:00

30 lines
717 B
PHP

<?php
namespace App\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class NewNotification
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $type, $content, $model;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct($type, $content, $model)
{
$this->type = $type;
$this->content = $content;
$this->model = $model;
}
}