FEATURE: add events to comments

This commit is contained in:
Michal Kváček
2016-09-23 00:41:38 +02:00
parent 0d8e927b08
commit fbb59277b9
12 changed files with 218 additions and 4 deletions
@@ -0,0 +1,20 @@
<?php
namespace Modules\Blog\Article\Events;
use App\Events\Event;
use Illuminate\Queue\SerializesModels;
use Modules\Blog\Article\Entities\Comment;
class ApprovedComment extends Event
{
use SerializesModels;
/**
* @var Comment
*/
public $comment;
public function __construct(Comment $comment)
{
$this->comment = $comment;
}
}