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