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