diff --git a/app/Observers/AvatarObserver.php b/app/Observers/AvatarObserver.php index 31ac45ebe..987db3097 100644 --- a/app/Observers/AvatarObserver.php +++ b/app/Observers/AvatarObserver.php @@ -9,6 +9,13 @@ use App\Services\AccountService; class AvatarObserver { + /** + * Handle events after all transactions are committed. + * + * @var bool + */ + public $afterCommit = true; + /** * Handle the avatar "created" event. * diff --git a/app/Observers/LikeObserver.php b/app/Observers/LikeObserver.php index d76140064..bbfe8c453 100644 --- a/app/Observers/LikeObserver.php +++ b/app/Observers/LikeObserver.php @@ -7,6 +7,13 @@ use App\Services\LikeService; class LikeObserver { + /** + * Handle events after all transactions are committed. + * + * @var bool + */ + public $afterCommit = true; + /** * Handle the Like "created" event. * diff --git a/app/Observers/ModLogObserver.php b/app/Observers/ModLogObserver.php index 52a2bdd0e..4d0a3d0fc 100644 --- a/app/Observers/ModLogObserver.php +++ b/app/Observers/ModLogObserver.php @@ -9,6 +9,13 @@ use Log; class ModLogObserver { + /** + * Handle events after all transactions are committed. + * + * @var bool + */ + public $afterCommit = true; + /** * Handle the mod log "created" event. * diff --git a/app/Observers/NotificationObserver.php b/app/Observers/NotificationObserver.php index 7cc91a853..9444cd56b 100644 --- a/app/Observers/NotificationObserver.php +++ b/app/Observers/NotificationObserver.php @@ -7,6 +7,13 @@ use App\Services\NotificationService; class NotificationObserver { + /** + * Handle events after all transactions are committed. + * + * @var bool + */ + public $afterCommit = true; + /** * Handle the notification "created" event. * diff --git a/app/Observers/ProfileObserver.php b/app/Observers/ProfileObserver.php index 8cd5caf96..b178f3529 100644 --- a/app/Observers/ProfileObserver.php +++ b/app/Observers/ProfileObserver.php @@ -7,6 +7,13 @@ use App\Services\AccountService; class ProfileObserver { + /** + * Handle events after all transactions are committed. + * + * @var bool + */ + public $afterCommit = true; + /** * Handle the Profile "created" event. * diff --git a/app/Observers/StatusHashtagObserver.php b/app/Observers/StatusHashtagObserver.php index 51832bcb8..5c7aa7d45 100644 --- a/app/Observers/StatusHashtagObserver.php +++ b/app/Observers/StatusHashtagObserver.php @@ -7,6 +7,13 @@ use App\Services\StatusHashtagService; class StatusHashtagObserver { + /** + * Handle events after all transactions are committed. + * + * @var bool + */ + public $afterCommit = true; + /** * Handle the notification "created" event. * diff --git a/app/Observers/UserFilterObserver.php b/app/Observers/UserFilterObserver.php index fa83d690a..8e149e7d9 100644 --- a/app/Observers/UserFilterObserver.php +++ b/app/Observers/UserFilterObserver.php @@ -7,6 +7,13 @@ use App\Services\UserFilterService; class UserFilterObserver { + /** + * Handle events after all transactions are committed. + * + * @var bool + */ + public $afterCommit = true; + /** * Handle the user filter "created" event. *