X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/0fb1fc87c8aef6a6bccc2210b26adbf69b525020..refs/pull/263/head:/app/Page.php diff --git a/app/Page.php b/app/Page.php index 3ee9e90f4..b24e7778a 100644 --- a/app/Page.php +++ b/app/Page.php @@ -7,6 +7,10 @@ class Page extends Entity protected $simpleAttributes = ['name', 'id', 'slug']; + protected $with = ['book']; + + protected $fieldsToSearch = ['name', 'text']; + /** * Converts this page into a simplified array. * @return mixed