{{ request()->except('page') }}
So, without route() helper
action="{{ request()->url().'?'.http_build_query(request()->except('page')) }}"
with route() helper
action="{{ route('your.route.name', request()->except('page')) }}"
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
how can i get current URL without pagination or page =1? action='{{Request::URL()}}' will give current url something like http://testpdf.oo/admin/students?q=amit&page=2. after clicking button i need to go http://testpdf.oo/admin/students?q=amit and then perform task.
Please or to participate in this conversation.