Skip to content

Commit

Permalink
Set $afterCommit to true on the ModelObserver (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerkretzmar committed Dec 21, 2020
1 parent 2f52859 commit 31f02b8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ModelObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@

class ModelObserver
{
/**
* Only dispatch the observer's events after all database transactions have committed.
*
* @var bool
*/
public $afterCommit = true;

/**
* The class names that syncing is disabled for.
*
Expand Down

0 comments on commit 31f02b8

Please sign in to comment.