PremoderateComment.php 459 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace App\Listeners;
  3. use App\Events\CommentAdded;
  4. use Illuminate\Contracts\Queue\ShouldQueue;
  5. use Illuminate\Queue\InteractsWithQueue;
  6. use App\Models\Comment;
  7. class PremoderateComment implements ShouldQueue
  8. {
  9. /**
  10. * Create the event listener.
  11. */
  12. public function __construct()
  13. {
  14. //
  15. }
  16. /**
  17. * Handle the event.
  18. */
  19. public function handle(CommentAdded $event): void
  20. {
  21. dump($event);
  22. }
  23. }