소스 검색

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
 {
+    /**
+     * Handle events after all transactions are committed.
+     *
+     * @var bool
+     */
+    public $afterCommit = true;
+
     /**
      * Handle the Status "created" event.
      *