Explorar o código

Update CommentPipeline

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
8c0119e69d
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  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.
      *