12345678910111213141516171819202122232425262728 |
- <?php
- namespace App\Listeners;
- use App\Events\CommentAdded;
- use Illuminate\Contracts\Queue\ShouldQueue;
- use Illuminate\Queue\InteractsWithQueue;
- use App\Models\Comment;
- class PremoderateComment implements ShouldQueue
- {
- /**
- * Create the event listener.
- */
- public function __construct()
- {
- //
- }
- /**
- * Handle the event.
- */
- public function handle(CommentAdded $event): void
- {
- dump($event);
- }
- }
|