Pārlūkot izejas kodu

Update StatusObserver, handle events after all transactions are committed

Daniel Supernault 2 gadi atpakaļ
vecāks
revīzija
805a014e38
1 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  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.
      *