skip to Main Content

Kyslik/column-sortable in laravel 10

I have project in laravel 10 with kyslik/column-sortable. When I get route: Route::get("/test", [searchEngineController::class, 'sort']); and in searchEngineController::sort: public function sort() { $products = Products::sortable()->paginate(5); return view('test', compact('products')); } and in view: <table class="table table-bordered"> <tr> <th width="80px">@sortablelink('id')</th> <th>@sortablelink('Name')</th> <th>@sortablelink('Second_data')</th>…

VIEW QUESTION
Back To Top
Search