Method |
Description |
|
attachments ( ) : Illuminate\Database\Eloquent\Relations\HasMany |
Get the attachments assigned to this page. |
|
book ( ) : BelongsTo |
Get the book this page sits in. |
|
chapter ( ) : BelongsTo |
Get the chapter that this page is in, If applicable. |
|
getExcerpt ( integer $length = 100 ) : mixed |
Get an excerpt of this page's content to the specified length. |
|
getUrl ( string | boolean $path = false ) : string |
Get the url for this page. |
|
hasChapter ( ) : boolean |
Check if this page has a chapter. |
|
revisions ( ) : mixed |
Get the associated page revisions, ordered by created date. |
|
toSimpleArray ( ) : mixed |
Converts this page into a simplified array. |
|