소스 검색

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