Not sure, but this looks like it could be a routing issue.
Is it possible that one of your routes is picking up /page-2 as a url parameter, thinking it's an order id?
If so, make sure that this route is above the one catching this.
Hi all,
I have problem with my pagination :
Controller code:
$pagination = Orders::latest()->paginate(2);
return view('orders.index',compact('pagination'));
View code:
{!! str_replace('/?', '?', $pagination->render()) !!}
All data have been loaded on page,that is fine,also pagination is on bottom, but when click on page 2, get error:
MethodNotAllowedHttpException in compiled.php line 7717
Tnx
Please or to participate in this conversation.