Overview
Explore 12 essential Laravel collection methods in this comprehensive video tutorial. Learn how to leverage the power of Laravel collections, which offer enhanced functionality compared to standard PHP arrays. Discover techniques for creating method chains to efficiently map and reduce arrays. Follow along as the instructor demonstrates each method, including all(), avg(), chunk(), combine(), contains(), count(), diff(), dd(), flip(), forget(), each(), map(), filter(), pluck(), isEmpty(), and isNotEmpty(). Gain practical insights through examples, including database setup, seeding, and chaining multiple methods together. Master these powerful collection methods to streamline your Laravel development process and write more efficient code.
Syllabus
Introduction, Creating a custom artisan command
Sponsor of today’s video
Introduction, Creating a custom artisan command
all
avg
chunk
combine
contains
count
diff
dd
flip
forget
Setting up our database & seeder
each
map
filter
pluck
isEmpty & isNotEmpty
Example: Chaining multiple methods together
Taught by
Code With Dary