Methodnotallowedhttpexception in the pagination Laravel 5.5

Asked

Viewed 37 times

0

I’m having trouble paging the data in the view. When performing the search it returns all the data, but when accessing the pagination link it returns the error "Methodnotallowedhttpexception".

http://localhost:8000/fetch? page=2

I had the same problem on the main search page because of CSRF, but I decided to assign the route in the exceptions of Verifycsrftoken, but I don’t know how to add the pagination routes.

inserir a descrição da imagem aqui

  • is a POST request, if it’s because you don’t use GET?

  • 1

    Yes, it’s a post request!

  • Couldn’t it be a GET to assemble your url with the data? see is an unnecessary complication (can even do with post, but, gives a small trampo)

  • 1

    It worked with the GET method! Thanks @Virgilionovic. !

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.