浏览代码

Nul pointer

Samson Mutunga 3 年之前
父节点
当前提交
1a7516e93f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Http/Controllers/DnaController.php

+ 2 - 2
app/Http/Controllers/DnaController.php

@@ -137,14 +137,14 @@ class DnaController extends Controller
             if($status === 'SUBMITTED') $bills = $bills->where('is_submitted', true);
         }
         
-        $bills = $bills->orderBy('created_at', 'DESC')->paginate(20);
+        $bills = $bills->orderBy('effective_date', 'DESC')->paginate(20);
         return view('app.dna.my-bills', compact('bills', 'filters'));
     }
 
     public function myClinicalTeams(Request $request){
         $filters = $request->all();
         $teams = ProTeam::where('assistant_pro_id', $this->performer->pro->id);        
-        $teams = $teams->orderBy('effective_date', 'DESC')->paginate(20);
+        $teams = $teams->orderBy('created_at', 'DESC')->paginate(20);
         return view('app.dna.my-clinical-teams', compact('teams', 'filters'));
     }