BroadcastsEventsAfterCommit.php 348 B

123456789101112131415161718
  1. <?php
  2. namespace Illuminate\Database\Eloquent;
  3. trait BroadcastsEventsAfterCommit
  4. {
  5. use BroadcastsEvents;
  6. /**
  7. * Determine if the model event broadcast queued job should be dispatched after all transactions are committed.
  8. *
  9. * @return bool
  10. */
  11. public function broadcastAfterCommit()
  12. {
  13. return true;
  14. }
  15. }