Eager load assets
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
return array (
|
||||
'app_version' => 'v2.0-317',
|
||||
'hash_version' => 'v2.0-317-g2e044bf',
|
||||
'app_version' => 'v2.0-318',
|
||||
'hash_version' => 'v2.0-318-gb1d5812',
|
||||
);
|
||||
@@ -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')));
|
||||
|
||||
Reference in New Issue
Block a user