mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-04 00:44:41 +08:00
Added limit to books shown on homepage and make alphabetical
This commit is contained in:
@ -25,9 +25,9 @@ class BookRepo
|
||||
return $this->book->findOrFail($id);
|
||||
}
|
||||
|
||||
public function getAll()
|
||||
public function getAll($count = 10)
|
||||
{
|
||||
return $this->book->all();
|
||||
return $this->book->orderBy('name', 'asc')->take($count)->get();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user