Why don't you create your pagination like this episode:
https://laracasts.com/series/lets-build-a-forum-with-laravel/episodes/38
Hi everyone, I need some help with pagination, i'm using this component:
http://hootlex.github.io/vuejs-paginator/
But i'm facing a problem with the resource_url, I don't understand very well how i'm suppossed to use this resource_url, I have a method in a controller that returns some clients registered in the database based on some information that the user has to enter, for example the name of the client, if the name match with some record then return that record, but many clients can have the same name so I can return 100 clients with the same name and here is where I want to implement the navigation.
So, I'm using the method paginate() from laravel and the response it works very well (in json format), but I don't know how to use this resource_url to work, because every time I clic on the button "Search" it calls this url, but don't send any parameters, my parameters are:
Name, MiddleName, LastName
And it is suppossed to work that every time I call '/SearchClients' I use axios to send a GET request, Axios get the response and save in a variable, but this url also return the json response and the component get the info from here, the problem is that the component doesn't send any parameters (Obviously, but I don't get how to get to a solution).
Any help would be appreciate it, thank you.
Why don't you create your pagination like this episode:
https://laracasts.com/series/lets-build-a-forum-with-laravel/episodes/38
Please or to participate in this conversation.