Рет қаралды 4,519
Here, we will be looking at how to make a Laravel Collection clone. We will learn about two interfaces of PHP which will help us access an object as an array and loop through the object, and they are ArrayAccess and Iterable respectively. We will all be implementing some methods like map, filter, reduce and sum.
====================== Support ======================
If you want me to continue making this kind of video for free on KZbin, then you can help me financially by sending a few bucks to my Wise (wise.com/invite/u/ashishd233) account in Nepalese 🇳🇵 currency.
My Wise email: ashish.dhamala2015@gmail.com
If you decide to support me, please send me your Twitter handle in the mail so that I can shout out about you.
====================== Social Media Links ======================
Let's be friends
/ aashish_dhamala
====================== Video Related Links ======================
00:00 Intro
00:29 Make New Collection Class
01:53 Using ArrayAccess interface to access object as array
07:30 Using Iterator interface to loop through an object
11:09 Implement map method
14:53 Implement filter method
16:12 Implement filter method
19:52 Ending
Laravel Collection Documentation
laravel.com/docs/9.x/collections
The ArrayAccess interface
www.php.net/manual/en/class.a...
The Iterator interface
www.php.net/manual/en/class.i...
====================== Other Videos ======================
New In Laravel Playlist
• New In Laravel
Laravel Package Development Playlist
• Laravel Package Develo...
Password Validation In Laravel with at least one Letters, Numbers, Upper and Lowercase or Symbols:
• Password Validation In...
Multiple Apis With ForwardsCalls Trait And Code Refactoring Tip - Laravel Hidden Feature:
• Multiple Apis With For...
Laravel Chunking - You Might Be Doing This Wrong - Problem and Solution:
• Laravel Chunking - You...
Laravel Tip - Properly Get Data Between Two Dates
• Laravel Tip - Properly...
Get Data From Multiple Databases In One Project | Laravel Tip
• Get Data From Multiple...
========= Theme and Font Used =========
Theme:
Cobalt2 Theme Official (marketplace.visualstudio.com/...)
Font:
JetBrains Mono (www.jetbrains.com/lp/mono/)
====================== Tech stack ======================
Laravel
PHP
#laravel #php #laraveltip #laratips