mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-02-24 02:28:14 +08: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);
|
||
|
}
|
||
|
|
||
|
}
|