]> BookStack Code Mirror - bookstack/blobdiff - app/Page.php
Finished refactor of entity repos
[bookstack] / app / Page.php
index 3ee9e90f43d7d110699076b7ca0502822d00241d..b24e7778aead87706b0b736d8ddaa625be5812ec 100644 (file)
@@ -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