mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-31 15:24:31 +03:00
Vastly improved design
This commit is contained in:
@ -27,9 +27,9 @@ class PageRepo
|
||||
return $this->page->all();
|
||||
}
|
||||
|
||||
public function getBySlug($slug)
|
||||
public function getBySlug($slug, $bookId)
|
||||
{
|
||||
return $this->page->where('slug', '=', $slug)->first();
|
||||
return $this->page->where('slug', '=', $slug)->where('book_id', '=', $bookId)->first();
|
||||
}
|
||||
|
||||
public function newFromInput($input)
|
||||
|
Reference in New Issue
Block a user