Laravel Collections & Eloquent Methods: 44 Essential Methods for Beginners - Mastering in Laravel
In this tutorial, you'll learn about 44 must-know Laravel collections and Eloquent methods for beginners to Boost Your Laravel Knowledge. Starting with an introduction, we'll then cover the project setup before diving into the details. We'll go over count(), countBy(), max(), min(), median(), mode(), random() & sum(), where(), whereStrict() & whereBetween(), whereIn() & whereNotIn(), whereNull & whereNotNull(), whereDate(), whereDay, whereMonth(), whereYear() & wheretime(), filter() & reject(), contains(), except() & only(), map() & mapWithKeys(), pluck() & keyBy(), push(), put(), forget(), pop() & shift(), concat() & zip(), collapse() & split(), sort() & sortDesc(), and sortBy(), sortByDesc(), sortKeys() & sortKeysDesc().
📚 New Udemy Course
If you're looking to level up your Laravel skills? My new course "Mastering Laravel 10 Query Builder, Eloquent & Relationships" is the perfect opportunity. Learn the essential tools and techniques for building robust and scalable web applications with Laravel: https://www.udemy.com/course/mastering-laravel-10-query-builder-eloquent-relationships/?referralCode=C784C3DB5B8925207FCB
🧠14 Must-Know Laravel Collection Methods
In addition to the collection methods covered in this tutorial, there are 14 more that you should know about.
https://www.youtube.com/watch?v=TuaeFeTVFHk&t
📲 Let’s plan a meeting
Plan a (paid) 1-hour meeting on Calendly to do portfolio reviews, code reviews resume reviews, or a coaching session for Laravel: https://calendly.com/codewithdary
💌 Newsletter
Sign up for my free weekly email newsletter: https://newsletter.codewithdary.com/
🔥 Resources
- Twitter: https://twitter.com/codewithdary
- Instagram: https://www.instagram.com/codewithdary/
- Blog: https://blog.codewithdary.com/
- Patreon: https://www.patreon.com/user?u=30307830
- GitHub: https://github.com/codewithdary
- TikTok: https://www.tiktok.com/@codewithdary
⌛Timestamps
00:00 - Introduction
01:02 - Udemy Course [AD]
02:08 - Project Setup
13:41 - count(), countBy(), max(), min(), median(), mode(), random() & sum()
21:41 - where(), whereStrict() & whereBetween()
30:08 - whereIn() & whereNotIn()
33:47 - whereNull & whereNotNull()
37:53 - whereDate(), whereDay, whereMonth(), whereYear() & wheretime()
44:21 - filter() & reject()
52:49 - contains(), except() & only()
57:34 - map() & mapWithKeys()
01:05:17 - pluck() & keyBy()
01:08:17 - push(), put(), forget(), pop() & shift()
01:14:45 - concat() & zip()
01:17:12 - collapse() & split()
01:20:52 - sort() & sortDesc()
01:22:22 - sortBy(), sortByDesc(), sortKeys() & sortKeysDesc()
#laravel #codewithdary #eloquent #php