File: /home/imensosw/public_html/mpl.imenso.co/app/Events/FanDeletedCommentOnPost.php
<?php
namespace App\Events;
use App\Models\Comment as Comment;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class FanDeletedCommentOnPost
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $comment;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct(Comment $comment)
{
$this->comment = $comment;
}
/*
* Get the channels the event should broadcast on.
*
* @return Channel|array
*/
// public function broadcastOn()
// {
// return new PrivateChannel('channel-name');
// }
}