for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace WebDevEtc\BlogEtc\Events;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use WebDevEtc\BlogEtc\Models\Comment;
/**
* Class CommentApproved.
*/
class CommentApproved
{
use Dispatchable;
use InteractsWithSockets;
use SerializesModels;
Illuminate\Queue\SerializesModels
WebDevEtc\BlogEtc\Events\CommentApproved
$id
$relations
$class
$connection
$keyBy
/** @var Comment */
public $comment;
public function __construct(Comment $comment)
$this->comment = $comment;
// you can get the blog post via $comment->post
}