From 24f131900731e16858113b32970bd049ddfe3c41 Mon Sep 17 00:00:00 2001 From: IceToast Date: Thu, 16 Feb 2023 00:19:23 +0100 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=94=A5=20remove=20datatablessort?= =?UTF-8?q?able=20trait?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Admin/ShopProductController.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/Http/Controllers/Admin/ShopProductController.php b/app/Http/Controllers/Admin/ShopProductController.php index d308c41c..655636f9 100644 --- a/app/Http/Controllers/Admin/ShopProductController.php +++ b/app/Http/Controllers/Admin/ShopProductController.php @@ -3,7 +3,6 @@ namespace App\Http\Controllers\Admin; use App\Models\ShopProduct; -use App\Traits\DatatablesSortable; use Illuminate\Contracts\Foundation\Application; use Illuminate\Contracts\View\Factory; use Illuminate\Contracts\View\View; @@ -15,7 +14,6 @@ use Illuminate\Validation\Rule; class ShopProductController extends Controller { - use DatatablesSortable; /** * Display a listing of the resource. @@ -143,9 +141,6 @@ class ShopProductController extends Controller { $query = ShopProduct::query(); - if ($request->has('order')) { - $query = $this->sortByColumn($request->input('order'), $request->input('columns'), $query); - } return datatables($query) ->addColumn('actions', function (ShopProduct $shopProduct) {