Level 73
There is already an answer for this here: https://stackoverflow.com/a/47005704/1457270
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello everyone.
I added pagination in blade something like {!! $products->links() !!}
And as result I have link in results: http://site.devv/{some_category}?page=1
I need if page=1, then redirect to http://site.devv/{some_category}
Do we have some elegant methods to do that?
Thank you.
Please or to participate in this conversation.