]> BookStack Code Mirror - bookstack/blobdiff - app/Interfaces/Sluggable.php
fix(503): massively simplify the 503 error view
[bookstack] / app / Interfaces / Sluggable.php
index 84f0e5bcd60f6738f623d9d8bffd567b10290c02..2d56e847e388fcca3993d4ecb35f77f302106d10 100644 (file)
@@ -1,18 +1,18 @@
-<?php namespace BookStack\Interfaces;
+<?php
 
-use Illuminate\Database\Eloquent\Builder;
+namespace BookStack\Interfaces;
 
 /**
- * Interface Sluggable
- *
  * Assigned to models that can have slugs.
  * Must have the below properties.
  *
- * @property int $id
+ * @property int    $id
  * @property string $name
- * @method Builder newQuery
  */
 interface Sluggable
 {
-
-}
\ No newline at end of file
+    /**
+     * Regenerate the slug for this model.
+     */
+    public function refreshSlug(): string;
+}