From eb5649d0b37c8ff0c1f380b02df38926d7306979 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 21 Oct 2015 23:25:23 -0700 Subject: [PATCH] Eager load assets --- app/config/version.php | 4 ++-- app/controllers/admin/CategoriesController.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/config/version.php b/app/config/version.php index 9606d9ca1b..50d302e07a 100644 --- a/app/config/version.php +++ b/app/config/version.php @@ -1,5 +1,5 @@ 'v2.0-317', - 'hash_version' => 'v2.0-317-g2e044bf', + 'app_version' => 'v2.0-318', + 'hash_version' => 'v2.0-318-gb1d5812', ); \ No newline at end of file diff --git a/app/controllers/admin/CategoriesController.php b/app/controllers/admin/CategoriesController.php index b1e051b872..df381bb907 100755 --- a/app/controllers/admin/CategoriesController.php +++ b/app/controllers/admin/CategoriesController.php @@ -218,7 +218,7 @@ class CategoriesController extends AdminController public function getDatatable() { // Grab all the categories - $categories = Category::orderBy('created_at', 'DESC'); + $categories = Category::with('assets'); if (Input::has('search')) { $categories = $categories->TextSearch(e(Input::get('search')));