]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Models/Chapter.php
fix deprecated syntax
[bookstack] / app / Entities / Models / Chapter.php
index d3a7101116ba5e36341773b2190e08a899deba86..c926aaa647a7d75501b55880e1cd2c834990f8fc 100644 (file)
@@ -11,7 +11,6 @@ use Illuminate\Support\Collection;
  * Class Chapter.
  *
  * @property Collection<Page> $pages
- * @property string           $description
  * @property ?int             $default_template_id
  * @property ?Page            $defaultTemplate
  */
@@ -70,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();
-    }
 }