Преглед на файлове

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.
      *