YoVDO

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

Offered By: Code With Dary via YouTube

Tags

Laravel Courses PHP Courses

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

Create an eCommerce Website Using Laravel (PHP & MySQL)
Udemy
PHP with Laravel for beginners - Become a Master in Laravel
Udemy
Beginning Laravel 10 - From Novice to Professional (2023)
Udemy
Laravel PHP Framework - Beginners
Udemy
Learn Laravel 7 along with REST API & Livewire
Udemy