Am sending a get request and adding the pagination value but now i would like to attach the page
So in my url i have
http://localhost:8080/users?paginator=10&page=1
The value of page and paginator are controlled from frontend(angular4)
So in my controler i have
class UserController extends Controller{
public function index(){
return User::paginate($request->paginator);
}
}
THe above works for the paginator value but now how do i attach the page number
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire