]> BookStack Code Mirror - bookstack/blob - app/Entities/BookChild.php
Fix Book form (create) returning to the full books list on cancel
[bookstack] / app / Entities / BookChild.php
1 <?php namespace BookStack\Entities;
2
3 use Illuminate\Database\Eloquent\Relations\BelongsTo;
4
5 /**
6  * Class BookChild
7  * @property int $book_id
8  */
9 class BookChild extends Entity
10 {
11
12     /**
13      * Get the book this page sits in.
14      * @return BelongsTo
15      */
16     public function book(): BelongsTo
17     {
18         return $this->belongsTo(Book::class);
19     }
20
21 }