Browse Source

Update AvatarPipeline

Daniel Supernault 6 năm trước cách đây
mục cha
commit
7316ee38c4

+ 7 - 0
app/Jobs/AvatarPipeline/AvatarOptimize.php

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

+ 7 - 0
app/Jobs/AvatarPipeline/CreateAvatar.php

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