From 377cb8e5d12bf3d243ff094192ca574c615bfe68 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 26 Jan 2017 20:08:06 -0800 Subject: [PATCH] Use Locations transformer for location API --- app/Http/Controllers/Api/LocationsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Api/LocationsController.php b/app/Http/Controllers/Api/LocationsController.php index f0452854c1..e74ae9e10f 100644 --- a/app/Http/Controllers/Api/LocationsController.php +++ b/app/Http/Controllers/Api/LocationsController.php @@ -6,7 +6,7 @@ use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Helpers\Helper; use App\Models\Location; -use App\Http\Transformers\DatatablesTransformer; +use App\Http\Transformers\LocationsTransformer; class LocationsController extends Controller { @@ -47,7 +47,7 @@ class LocationsController extends Controller $total = $locations->count(); $locations = $locations->skip($offset)->take($limit)->get(); - return (new DatatablesTransformer)->transformDatatables($locations, $total); + return (new LocationsTransformer)->transformLocations($locations, $total); }