Explorar o código

Update AvatarPipeline

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
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.
      *