Skip to content

Commit

Permalink
chore: 🔥 remove datatablessortable trait
Browse files Browse the repository at this point in the history
  • Loading branch information
IceToast committed Feb 16, 2023
1 parent 82887c0 commit 24f1319
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/Http/Controllers/Admin/ShopProductController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -15,7 +14,6 @@

class ShopProductController extends Controller
{
use DatatablesSortable;

/**
* Display a listing of the resource.
Expand Down Expand Up @@ -143,9 +141,6 @@ public function dataTable(Request $request)
{
$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) {
Expand Down

0 comments on commit 24f1319

Please sign in to comment.