1
0
Daniel Supernault 6 жил өмнө
parent
commit
8c0119e69d

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