Laravel Advanced - Making Laravel Collection Clone

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 YouTube, then you can help me financially by sending a few bucks to my Wise (https://wise.com/invite/u/ashishd233) account in Nepalese 🇳🇵 currency. My Wise email: [email protected] 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 https://laravel.com/docs/9.x/collections The ArrayAccess interface https://www.php.net/manual/en/class.a... The Iterator interface https://www.php.net/manual/en/class.i... ====================== Other Videos ====================== New In Laravel Playlist    • New In Laravel   Laravel Package Development Playlist    • Laravel Package Development - Send Passwor...   Password Validation In Laravel with at least one Letters, Numbers, Upper and Lowercase or Symbols:    • Password Validation In Laravel with at lea...   Multiple Apis With ForwardsCalls Trait And Code Refactoring Tip - Laravel Hidden Feature:    • Multiple Apis With ForwardsCalls Trait And...   Laravel Chunking - You Might Be Doing This Wrong - Problem and Solution:    • Laravel Chunking - You Might Be Doing This...   Laravel Tip - Properly Get Data Between Two Dates    • Laravel Tip - Properly Get Data Between Tw...   Get Data From Multiple Databases In One Project | Laravel Tip    • Get Data From Multiple Databases In One Pr...   ========= Theme and Font Used ========= Theme: Cobalt2 Theme Official (https://marketplace.visualstudio.com/...) Font: JetBrains Mono (https://www.jetbrains.com/lp/mono/) ====================== Tech stack ====================== Laravel PHP #laravel #php #laraveltip #laratips