1
0
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:
Dan Brown
2015-07-15 22:55:49 +01:00
parent c4d0f38a67
commit 46217a5880
24 changed files with 439 additions and 140 deletions

View File

@ -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)