Make Working With Numbers in Collections EXTREMELY Easy - Mastering Eloquent & Collection Methods
In this tutorial, we will cover various Eloquent collection methods that can be used when working with numbers. These methods include count(), countBy(), max(), min(), median(), mode(), random(), and sum(). We will also explore how to use these methods in combination with other query builder methods to build more complex queries. By the end of this tutorial, you will have a better understanding of how to work with numbers in Eloquent collections and be able to apply these methods to your own projects.
๐ 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
๐ฒ 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
๐ Table of Content
00:00 - Introduction
01:09 - count()
02:32 - countBy()
03:26 - max()
04:32 - min()
04:57 - median()
05:40 - mode()
06:42 - random()
07:38 - sum()
08:08 - Outro
#laravel #php #codewithdary