Procházet zdrojové kódy

Update CommentPipeline

Daniel Supernault před 6 roky
rodič
revize
8c0119e69d
1 změnil soubory, kde provedl 7 přidání a 0 odebrání
  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.
      *