Update Doctors
This commit is contained in:
@@ -57,8 +57,13 @@ class HospitalController extends Controller
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
|
||||
$limit = $request->limit ?? 6;
|
||||
if ($limit > 20) {
|
||||
$limit = 20;
|
||||
}
|
||||
|
||||
$hospitals = $hospitals->paginate($request->limit ?? 6);
|
||||
$hospitals = $hospitals->paginate($limit);
|
||||
// dd($hospitals->toArray());
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user