Must Know Collection Methods in Laravel - How to Use Collections in Laravel
Offered By: Code With Dary via YouTube
Course Description
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
Related Courses
Introduction to Functional ProgrammingDelft University of Technology via edX Introduction to Office 365 Development and APIs
Microsoft via edX Web Development and Design using Wordpress
California Institute of the Arts via Kadenze Build a Basic PHP Website Course (How To)
Treehouse Web Applications for Everybody
Independent