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

Postări populare de pe acest blog

Process Command Line Arguments in Python

SQL injection with UNION

Docker compose DNS resolution