From dfdf584b411cea27cc6333e7566f95430fd25202 Mon Sep 17 00:00:00 2001 From: Sergey Panarin Date: Thu, 11 Jul 2024 09:16:02 +0200 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/WorkerController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')); -- 1.7.10.4