From 8c0119e69df8c9e253eb7783ce8e9da4fd81672a Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 12 Jan 2019 15:23:22 -0700 Subject: [PATCH] Update CommentPipeline --- app/Jobs/CommentPipeline/CommentPipeline.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Jobs/CommentPipeline/CommentPipeline.php b/app/Jobs/CommentPipeline/CommentPipeline.php index 8c1eb21a8..bafe9bafd 100644 --- a/app/Jobs/CommentPipeline/CommentPipeline.php +++ b/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. *