Skip to content

Commit

Permalink
Update QuranController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eggy4prlnt authored May 22, 2020
1 parent 7e93a0f commit 749049f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/QuranController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 749049f

Please sign in to comment.