In Builder.php the paginate function contains four parameters.
public function paginate($perPage = 15, $columns = ['*'], $pageName = 'page', $page = null)
First is the number of items per page, second is the number of the returned rows, third is the name of the pagination pages and the last one is the number of the page. My question is how to make the $page dynamic.
@Sinnbeck The page number. Since pages are not changing by default. When I pass a number let's say 2 it will be only on the second page so I thought if I can make it dynamic the pages will change with no problem
@Yorkata Laravel will automatically grab it from the url, if you use it as it is supposed to be used. When you click on page 2 in pagination links, it will add &page=2 to the url, which will make laravel show page 2. If this does not work, you might want to show some code, so we can help fixing it
@Sinnbeck When I click on page 2 or any of the other pages the URL changes (?page=1, ?page=2, ?page=6) but the page itself does not. Displays the same results no matter whats in the URL