File: /home/imensosw/public_html/mpl.imenso.co/app/Events/UserLikesPost.php
<?php
namespace App\Events;
use App\Models\News as News;
use App\Models\User as User;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class UserLikesPost
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $liker;
public $post;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct(User $liker, News $post)
{
$this->post = $post;
$this->liker = $liker;
}
}