瀏覽代碼

Update MentionPipeline

Daniel Supernault 6 年之前
父節點
當前提交
7e16e9d43f
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      app/Jobs/MentionPipeline/MentionPipeline.php

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

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