How to Add Pagination in Laravel? (Step-by-Step) | Laravel 8 Tutorial for Beginners #27
Вставка
- Опубліковано 12 лис 2024
- In this video, We are explaining about How to Add Pagination in Laravel?. Please do watch the complete video for in-depth information.
JOIN: / @wscubetech
Link to our "English UA-cam Channel": bit.ly/2M3oYOs
WsCubeTech - Digital Marketing Agency & Institute.
✔ We can help you to create a Digital Marketing plan to take your business to new heights.
✔ Offering Job Oriented Most Latest, Updated, and advanced Digital Marketing Courses with Practical, Hands-on Live Projects Training & Exposure.
For More information : Call us at : +91- 92696-98122
Or visit at www.wscubetech...
There is a complete playlist of Digital Marketing Interview Tips & Tricks available -
www.youtube.co...
There is a complete playlist of Facebook Ads available -
Link: • Facebook Advance SMO &...
There is a complete playlist of Twitter Ads available.
Link: • Twitter Ads | All Twit...
✅ CONNECT WITH THE FOUNDER (Mr. Kushagra Bhatia) -
👉 Instagram - / kushagrabhatiaofficial
👉 LinkedIn - / kushagra-bhatia
👉 Facebook - / kushagrawscubetech
Please don’t Forget to Like, Share & Subscribe
►Subscribe: bit.ly/wscubech...
► Facebook: / wsubetech.india
► Twitter: / wscube
► Instagram: / wscubetechindia
► LinkedIn : / wscube-tech
► UA-cam: / wscubetechjodhpur
► Website: wscubetech.com
-------------------------------------| Thanks |--------------------------
#Laravel8 #PaginationinLaravel #LaravelPagination
😎Hey, thanks for watching! We’d love to know your thoughts/doubts here in the comments.
🔴 To learn Web Development online with regular LIVE CLASSES, enroll now: forms.gle/XVJRMQdCMoPeNpBm7
👉For professional self-paced certification courses (pre-recorded), visit: bit.ly/Pre-Recorded-Course
👉Don’t forget to SUBSCRIBE to our channel for more such videos & valuable content: bit.ly/UA-cam-WsCubeTech
Thanks from thewebhour developers 👍🏼
You are amazing brother.
thank you
Good sir
Thanks Sir
Now search not working
Method Illuminate\Database\Eloquent\Collection::links does not exist.
cause
The get() function returns a collection, the paginate() function returns a Paginator that has the links() function you want.
try this
$customers = Customer::where('name', 'LIKE', "%$search%")->paginate(5);
instead of get() used paginate()
@@sultanahmed2299not working
$customer = Rcustomer::where('name', 'LIKE', "%$search%")->orWhere('email', 'LIKE',"%$search%")->paginate(15);
Use paginate() insteade of get()
It's showing arrow "call undefined method links() "
same error
$customer = Rcustomer::where('name', 'LIKE', "%$search%")->orWhere('email', 'LIKE',"%$search%")->paginate(15);
Use paginate() insteade of get()
I try to search with state, city also. Just add only ->paginate(15); in last
Then
$customers = Customer::paginate(15); Instead of $customers = Customer::all();
+==============================================================+
$customers = Customer::where('name', 'LIKE', "%$search%")->orwhere('email', 'LIKE', "%$search%")->orwhere('city', 'LIKE', "%$search%")->orwhere('state', 'LIKE', "%$search%")->paginate(15);
+==============================================================+
It will work 100%👍
i got two big arrows when i was using pagination. what is the SOLUTION?
use {{$customers->links('pagination::bootstrap-5')}}
same issue... Solution?
Done
make project beingner lvl in hindi