Commit dfdf584b411cea27cc6333e7566f95430fd25202
1 parent
00076c621d
Exists in
master
фиксы
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
app/Http/Controllers/WorkerController.php
... | ... | @@ -163,7 +163,8 @@ class WorkerController extends Controller |
163 | 163 | $job_titles = Job_title::query() |
164 | 164 | ->where('is_remove', '=', 0) |
165 | 165 | ->where('is_bd', '=', 1) |
166 | - ->sortByDesc('sort') | |
166 | + ->orderByDesc('sort') | |
167 | + ->get() | |
167 | 168 | ; |
168 | 169 | |
169 | 170 | return view('workers.form_basic_information', compact('user', 'job_titles')); |