BroadcastsEventsAfterCommit.php
TLDR
The BroadcastsEventsAfterCommit
trait is used to determine if the model event broadcast queued job should be dispatched after all transactions are committed.
Methods
broadcastAfterCommit()
This method determines if the model event broadcast queued job should be dispatched after all transactions are committed. It returns a boolean value.
<?php
namespace Illuminate\Database\Eloquent;
trait BroadcastsEventsAfterCommit
{
use BroadcastsEvents;
/**
* Determine if the model event broadcast queued job should be dispatched after all transactions are committed.
*
* @return bool
*/
public function broadcastAfterCommit()
{
return true;
}
}