File: /home/xedaptot/work.naniguide.com/app/Events/TaskEvent.php
<?php
namespace App\Events;
use App\Models\Task;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class TaskEvent
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $task;
public $notifyUser;
public $notificationName;
public function __construct(Task $task, $notifyUser, $notificationName)
{
$this->task = $task;
$this->notifyUser = $notifyUser;
$this->notificationName = $notificationName;
}
}