How to make a custom pagination from an array in laravel easiest way
HTML-код
- Опубликовано: 29 июн 2024
- Let's display array content with pagination using laravel. we can display any array with pagination. In this video we are going to see the example of it. and you can use code from this video to output your array with pagination.
Full article + Code:
zarx.biz/How-to-make-a-custom...
Playlists you might like:
Laravel 8 Api Development: zarx.biz/us/wy2xisp
Laravel 8 For Beginners: zarx.biz/us/hb3b8es
WordPress theme development For Beginners: zarx.biz/us/m9yfvys
HTML CSS tutorial for beginners: zarx.biz/us/u34j40t
JavaScript For Beginners: zarx.biz/us/7lydxmk
PHP for beginners: zarx.biz/us/7gbjyk1
PHP OOP for beginners: zarx.biz/us/24px7tq
ZarxBiz Offers
You can try our Latest free Web applications:
Advanced Task Manager: zarx.biz/tasks
Support Us:
On Patreon: / zarxbiz
Donate (PayPal): www.paypal.com/paypalme/arrow...
Subscribe To Support
thanks, it worked for me using "withPath" in place of "path". in Laravel 8
Good to know it helped 👍
thats good. but you query on all data.
Hello. Thank you for the lesson. How to add sorting in paginator!?
How to do a search in that array?
Using Laravel 8 I am creating an array with custom data to send to a named view. The pagination works for page 1 but when I try to go to page 2 I am redirected to /?=page2 instead of /view?=page2. I tried using $data->path('') as well as $data->path('view') but I am still being redirected to /?=page2. Any suggestions?
Thanks for writing in. Hard to answer can you share your code. I will try to answer after watching it. Thanks
use $data->withPath('view') in your case.
@@mohamadfarhanbinmohdfauzi2962 thank you i did it
@@mohamadfarhanbinmohdfauzi2962 i haved same problem but with your suggestion i fix it, thanks