瀏覽代碼

Update StatusObserver, handle events after all transactions are committed

Daniel Supernault 2 年之前
父節點
當前提交
805a014e38
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      app/Observers/StatusObserver.php

+ 7 - 0
app/Observers/StatusObserver.php

@@ -7,6 +7,13 @@ use App\Services\ProfileStatusService;
 
 
 class StatusObserver
 class StatusObserver
 {
 {
+    /**
+     * Handle events after all transactions are committed.
+     *
+     * @var bool
+     */
+    public $afterCommit = true;
+
     /**
     /**
      * Handle the Status "created" event.
      * Handle the Status "created" event.
      *
      *