2021-03-01 14:52:11 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Events;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
|
|
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
|
|
class NewNotification
|
|
|
|
|
{
|
2021-03-20 14:38:15 +01:00
|
|
|
use Dispatchable;
|
|
|
|
|
use InteractsWithSockets;
|
|
|
|
|
use SerializesModels;
|
2021-03-01 14:52:11 +01:00
|
|
|
|
2021-03-21 22:51:19 +01:00
|
|
|
public $type;
|
|
|
|
|
|
|
|
|
|
public $content;
|
|
|
|
|
|
|
|
|
|
public $model;
|
2021-03-01 14:52:11 +01:00
|
|
|
|
2021-04-30 18:40:16 +02:00
|
|
|
public $customer;
|
|
|
|
|
|
2021-03-01 14:52:11 +01:00
|
|
|
/**
|
|
|
|
|
* Create a new event instance.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
2021-04-30 18:40:16 +02:00
|
|
|
public function __construct($type, $content, $model, $customer = null)
|
2021-03-01 14:52:11 +01:00
|
|
|
{
|
|
|
|
|
$this->type = $type;
|
|
|
|
|
$this->content = $content;
|
|
|
|
|
$this->model = $model;
|
2021-04-30 18:40:16 +02:00
|
|
|
$this->customer = $customer;
|
2021-03-01 14:52:11 +01:00
|
|
|
}
|
|
|
|
|
}
|