X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/3acea12f1c0013be4f1e3994cae2ea662e43bb4e..refs/pull/1688/head:/app/Entities/Page.php diff --git a/app/Entities/Page.php b/app/Entities/Page.php index c32417418..752b3c9dd 100644 --- a/app/Entities/Page.php +++ b/app/Entities/Page.php @@ -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