mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-05-04 18:08:46 +03:00
Merge branch 'prev-next-button' of https://github.com/shubhamosmosys/BookStack into shubhamosmosys-prev-next-button
This commit is contained in:
@@ -468,4 +468,10 @@ class PageRepo
|
||||
->where('page_id', '=', $page->id)
|
||||
->orderBy('created_at', 'desc');
|
||||
}
|
||||
/**
|
||||
* Get page details by chapter ID.
|
||||
*/
|
||||
public function getPageByChapterID(int $id){
|
||||
return Page::visible()->where('chapter_id', '=', $id)->get(['id','slug']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user