diff --git a/app/Http/Controllers/WorkerController.php b/app/Http/Controllers/WorkerController.php index 2887aca..f5d81a1 100644 --- a/app/Http/Controllers/WorkerController.php +++ b/app/Http/Controllers/WorkerController.php @@ -163,7 +163,8 @@ class WorkerController extends Controller $job_titles = Job_title::query() ->where('is_remove', '=', 0) ->where('is_bd', '=', 1) - ->sortByDesc('sort') + ->orderByDesc('sort') + ->get() ; return view('workers.form_basic_information', compact('user', 'job_titles'));