]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Page.php
Show bookshelves that a book belongs to on a book view
[bookstack] / app / Entities / Page.php
index c32417418b7c0a2f0cd2e61f8b4856af17c476c5..752b3c9ddd7cd973eb8dc1166601503e12f09db8 100644 (file)
@@ -2,7 +2,7 @@
 
 use BookStack\Uploads\Attachment;
 
-class Page extends Entity
+class Page extends BookChild
 {
     protected $fillable = ['name', 'html', 'priority', 'markdown'];
 
@@ -30,15 +30,6 @@ class Page extends Entity
         return $array;
     }
 
-    /**
-     * Get the book this page sits in.
-     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
-     */
-    public function book()
-    {
-        return $this->belongsTo(Book::class);
-    }
-
     /**
      * Get the parent item
      * @return \Illuminate\Database\Eloquent\Relations\BelongsTo