1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Made chapters functional and cleaned design features

This commit is contained in:
Dan Brown
2015-07-30 22:27:35 +01:00
parent fd1a0dceb2
commit b54ef3bb4b
21 changed files with 330 additions and 245 deletions

View File

@@ -18,6 +18,11 @@ class ChapterRepo
$this->chapter = $chapter;
}
public function idExists($id)
{
return $this->chapter->where('id', '=', $id)->count() > 0;
}
public function getById($id)
{
return $this->chapter->findOrFail($id);