Update Doctors

This commit is contained in:
R
2022-09-20 10:57:10 +07:00
parent 07bfbaefe0
commit d187b9331d
7 changed files with 88 additions and 14 deletions

View File

@@ -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());