I'm using Laravel Database: Pagination to show the links in the blade template. I can view the data in columns but not the links.
This is the controller function I use to pass the data to view.
public function showProducts(){
$products = DB::table('products')->orderBy('created_at')->simplePaginate(9);
return view('products', ['products' => $products]);
}
And this is the view section to show the links.
<div class="row text-center">
<div class="col-lg-12">
<ul class="pagination">
</ul>
</div>
</div>
<!-- /.row -->
But I can't see any links. Is there a way to solve this?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2uzOa6E
via IFTTT
Aucun commentaire:
Enregistrer un commentaire