diff --git a/app/Http/Controllers/QuranController.php b/app/Http/Controllers/QuranController.php index 9bd8a69..fa1b18f 100644 --- a/app/Http/Controllers/QuranController.php +++ b/app/Http/Controllers/QuranController.php @@ -19,13 +19,13 @@ public function __construct() public function showSurat($last, $next) { - $get = Surat::where('id', '>', $last)->limit($next)->get(); + $get = Surat::where('id', '>=', $last)->limit($next)->get(); return response()->json($get, 200, array('Content-Type' => 'application/json;charset=utf8'), JSON_UNESCAPED_UNICODE); } public function showAyat($id_surat, $last, $next) { - $get = Ayat::where('id_surat', $id_surat)->where('ayat', '>', $last)->limit($next)->get(); + $get = Ayat::where('id_surat', $id_surat)->where('ayat', '>=', $last)->limit($next)->get(); return response()->json($get, 200, array('Content-Type' => 'application/json;charset=utf8'), JSON_UNESCAPED_UNICODE); } }