3 namespace BookStack\Entities\Models;
5 use Illuminate\Database\Eloquent\Relations\BelongsTo;
10 * @property int $book_id
11 * @property int $priority
12 * @property string $book_slug
13 * @property Book $book
15 abstract class BookChild extends Entity
18 * Get the book this page sits in.
19 * @return BelongsTo<Book, $this>
21 public function book(): BelongsTo
23 return $this->belongsTo(Book::class)->withTrashed();