/** * detect page when change surah * */ public function changeSurah($surah) { $QuranModel = new Quran(); $page = $QuranModel->getSurahPage($surah); return redirect('mushaf/page/' . $page)->with('searchSurah', $surah); }