]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Models/PageRevision.php
Fixed failing test after drawio default url change
[bookstack] / app / Entities / Models / PageRevision.php
index 4daf50536441dda8360648eb6ce12c5eee881965..800e5e7f2d8d0332bfcc868bbdcdcb8c872d5698 100644 (file)
@@ -10,6 +10,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
 /**
  * Class PageRevision.
  *
+ * @property mixed  $id
  * @property int    $page_id
  * @property string $slug
  * @property string $book_slug
@@ -27,6 +28,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
 class PageRevision extends Model
 {
     protected $fillable = ['name', 'html', 'text', 'markdown', 'summary'];
+    protected $hidden = ['html', 'markdown', 'restricted', 'text'];
 
     /**
      * Get the user that created the page revision.