Completed
Push — master ( cf0e2d...d51d5f )
by
unknown
26s
created
app/Http/Controllers/DoctorController.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,9 +138,9 @@
 block discarded – undo
138 138
 
139 139
     public function searchDoctor(Request $request)
140 140
     {
141
-        if($request->nama == null AND $request->location != null){
141
+        if($request->nama == null and $request->location != null){
142 142
             $doctor = Doctor::where('city_id',$request->location)->orderBy('name','asc')->paginate(5);
143
-        }elseif ($request->location == null AND $request->nama != null){
143
+        }elseif ($request->location == null and $request->nama != null){
144 144
             $doctor = Doctor::where('name','LIKE','%'.$request->nama.'%')->orderBy('name','asc')->paginate(5);
145 145
         }else{
146 146
             $doctor = Doctor::where('name','LIKE','%'.$request->nama.'%')->where('city_id',$request->location)->orderBy('name','asc')->paginate(5);
Please login to merge, or discard this patch.