mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-03-13 11:53:20 +00:00
21 lines
357 B
PHP
21 lines
357 B
PHP
![]() |
<?php namespace BookStack\Entities;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||
|
|
||
|
/**
|
||
|
* Class BookChild
|
||
|
* @property int $book_id
|
||
|
*/
|
||
|
class BookChild extends Entity
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* Get the book this page sits in.
|
||
|
* @return BelongsTo
|
||
|
*/
|
||
|
public function book(): BelongsTo
|
||
|
{
|
||
|
return $this->belongsTo(Book::class);
|
||
|
}
|
||
|
|
||
|
}
|