mirror of
https://github.com/wearepixel/laravel-comments.git
synced 2026-11-14 14:02:04 +00:00
23 lines
530 B
PHP
23 lines
530 B
PHP
<?php
|
|
|
|
namespace BeyondCode\Comments\Events;
|
|
|
|
use BeyondCode\Comments\Comment;
|
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
|
use Illuminate\Contracts\Events\ShouldDispatchAfterCommit;
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class CommentAdded implements ShouldDispatchAfterCommit
|
|
{
|
|
use Dispatchable, InteractsWithSockets, SerializesModels;
|
|
|
|
/**
|
|
* Create a new event instance.
|
|
*/
|
|
public function __construct(
|
|
public Comment $comment,
|
|
) {
|
|
}
|
|
}
|