]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Models/Entity.php
Add base64 image support
[bookstack] / app / Entities / Models / Entity.php
index f5f43fe8cfe2f9646675acc77235aa8c9db43282..d4b477304da8848d113b3882517a7d9bcea366f5 100644 (file)
@@ -290,11 +290,11 @@ abstract class Entity extends Model implements Sluggable
     }
 
     /**
-     * Generate and set a new URL slug for this model.
+     * @inheritdoc
      */
     public function refreshSlug(): string
     {
-        $this->slug = (new SlugGenerator)->generate($this);
+        $this->slug = app(SlugGenerator::class)->generate($this);
         return $this->slug;
     }
 }