Commit bc6ed69a235ccb5740f0b4d803867cc15130258c

Authored by Андрей Ларионов
Exists in master

Merge branch 'master' of http://gitlab.nologostudio.ru/alarionov/rekamore-su

Showing 1 changed file 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'));