]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Models/Chapter.php
fix deprecated syntax
[bookstack] / app / Entities / Models / Chapter.php
index 422c82442fe8d203ed63cffd404eefa03af96c92..c926aaa647a7d75501b55880e1cd2c834990f8fc 100644 (file)
@@ -69,13 +69,4 @@ class Chapter extends BookChild
         ->orderBy('priority', 'asc')
         ->get();
     }
-
-    /**
-     * Get a visible chapter by its book and page slugs.
-     * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
-     */
-    public static function getBySlugs(string $bookSlug, string $chapterSlug): self
-    {
-        return static::visible()->whereSlugs($bookSlug, $chapterSlug)->firstOrFail();
-    }
 }