]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Models/Bookshelf.php
respective book and chapter structure added.
[bookstack] / app / Entities / Models / Bookshelf.php
index 4b44025a4c3e84eb3b00838cb4c32868e19d3b13..9ffa0ea9cabd9a9b3beed43ea65cc4c21f2f0aad 100644 (file)
@@ -11,14 +11,15 @@ use Illuminate\Database\Eloquent\Relations\BelongsToMany;
 class Bookshelf extends Entity implements HasCoverImage
 {
     use HasFactory;
+    use HasHtmlDescription;
 
     protected $table = 'bookshelves';
 
-    public $searchFactor = 1.2;
+    public float $searchFactor = 1.2;
 
     protected $fillable = ['name', 'description', 'image_id'];
 
-    protected $hidden = ['image_id', 'deleted_at'];
+    protected $hidden = ['image_id', 'deleted_at', 'description_html'];
 
     /**
      * Get the books in this shelf.