Commit 01ae8538d8ce18d9347e9f5660bb9ea2297a0e34
1 parent
2b8dd10cb3
Exists in
master
правки
Showing 2 changed files with 7 additions and 4 deletions Side-by-side Diff
app/Http/Controllers/WorkerController.php
... | ... | @@ -95,10 +95,12 @@ class WorkerController extends Controller |
95 | 95 | }); |
96 | 96 | } |
97 | 97 | |
98 | - $Job_title = Job_title::query()-> | |
99 | - where('is_remove', '=', '0')-> | |
100 | - where('is_bd', '=' , '1')-> | |
101 | - get(); | |
98 | + $Job_title = Job_title::query() | |
99 | + ->where('is_remove', '=', '0') | |
100 | + ->where('is_bd', '=' , '1') | |
101 | + ->orderByDesc('sort') | |
102 | + ->get() | |
103 | + ; | |
102 | 104 | |
103 | 105 | if ($request->get('sort')) { |
104 | 106 | $sort = $request->get('sort'); |
resources/views/employers/bd.blade.php