vendredi 11 mars 2016

How to set pagiantion links in laravel

View

$aHotelRooms = DB::table('abserve_hotels')->paginate(3);

@foreach($aHotelRooms as $aHotelRoom)
@endforeach
<div class="pagination">
<?php
echo $aHotelRooms->appends('aHotelRooms')->render(); 
?>

Here pagination shows the lists according to what I gave in paginate()..

But when I click the links in that pagination..It seems to be an Object not found 404 error..

What should I do for this..

Regards Suganya,



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire