]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Models/BookChild.php
Improve sorting Shelf Books
[bookstack] / app / Entities / Models / BookChild.php
index 91f62dc403c64fdde0079b223e4574bd84199251..8b968cc8b8d8268ae755bbc79ad42bd24419031e 100644 (file)
@@ -31,11 +31,10 @@ abstract class BookChild extends Entity
 
     /**
      * Get the book this page sits in.
-     * @return BelongsTo
      */
     public function book(): BelongsTo
     {
-        return $this->belongsTo(Book::class);
+        return $this->belongsTo(Book::class)->withTrashed();
     }
 
     /**