Customizing The Paginator URI in Laravel
Customizing The Paginator URI
The setPath method allows you to customize the URI used by the paginator when generating links.
Exemple:
paginate(5)->setPath('/monitor/viewlog?id='.$id);
(add "id=$id" to the URI)
Comentarii
Trimiteți un comentariu