Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Must Know Collection Methods in Laravel - How to Use Collections in Laravel

Code With Dary via YouTube

Overview

Coursera Plus Monthly Sale: All Certificates & Courses 40% Off!
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

Reviews

Start your review of Must Know Collection Methods in Laravel - How to Use Collections in Laravel

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.