Change paginate to get for Index

Fixes #261 - Pagination appears to work correctly after this change
This commit is contained in:
madd15
2014-10-27 12:14:55 +10:30
parent 22f81912e4
commit 16420dafa9
8 changed files with 8 additions and 8 deletions
@@ -21,7 +21,7 @@ class ManufacturersController extends AdminController
public function getIndex()
{
// Grab all the manufacturers
$manufacturers = Manufacturer::orderBy('created_at', 'DESC')->paginate(Setting::getSettings()->per_page);
$manufacturers = Manufacturer::orderBy('created_at', 'DESC')->get();
// Show the page
return View::make('backend/manufacturers/index', compact('manufacturers'));