]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Models/Page.php
Started pages API
[bookstack] / app / Entities / Models / Page.php
index b3eb213212fc89f4eee5258de10dda62b08d5245..b0a3e2d3185143a9265e6079c3b615e88e5579a6 100644 (file)
@@ -29,6 +29,11 @@ class Page extends BookChild
 
     protected $hidden = ['html', 'markdown', 'text', 'restricted', 'pivot'];
 
+    protected $casts = [
+        'draft' => 'boolean',
+        'template' => 'boolean',
+    ];
+
     /**
      * Get the entities that are visible to the current user.
      */