Daniel Supernault преди 6 години
родител
ревизия
8c0119e69d
променени са 1 файла, в които са добавени 7 реда и са изтрити 0 реда
  1. 7 0
      app/Jobs/CommentPipeline/CommentPipeline.php

+ 7 - 0
app/Jobs/CommentPipeline/CommentPipeline.php

@@ -20,6 +20,13 @@ class CommentPipeline implements ShouldQueue
     protected $status;
     protected $comment;
 
+    /**
+     * Delete the job if its models no longer exist.
+     *
+     * @var bool
+     */
+    public $deleteWhenMissingModels = true;
+    
     /**
      * Create a new job instance.
      *