Vigyata.AI
Is this your channel?

Laravel Advanced - Making Laravel Collection Clone

5.7K views· 102 likes· 20:12· Feb 25, 2022

🛍️ Products Mentioned (6)

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: 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 https://www.instagram.com/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.arrayaccess.php The Iterator interface https://www.php.net/manual/en/class.iterator.php ====================== Other Videos ====================== New In Laravel Playlist https://www.youtube.com/playlist?list=PL2DahmvUpeuu4UVWrcxlvVkMiI0SeS2OZ Laravel Package Development Playlist https://www.youtube.com/playlist?list=PL2DahmvUpeuu8HkpbNT-cKernolVdqZq_ Password Validation In Laravel with at least one Letters, Numbers, Upper and Lowercase or Symbols: https://youtu.be/f-g3P9imPZs Multiple Apis With ForwardsCalls Trait And Code Refactoring Tip - Laravel Hidden Feature: https://youtu.be/vzgNm86ezWE Laravel Chunking - You Might Be Doing This Wrong - Problem and Solution: https://youtu.be/aQCHmB4Uh0Q Laravel Tip - Properly Get Data Between Two Dates https://youtu.be/bJkEBTg1NGA Get Data From Multiple Databases In One Project | Laravel Tip https://youtu.be/KJAXLf78QPs ========= Theme and Font Used ========= Theme: Cobalt2 Theme Official (https://marketplace.visualstudio.com/items?itemName=wesbos.theme-cobalt2) Font: JetBrains Mono (https://www.jetbrains.com/lp/mono/) ====================== Tech stack ====================== Laravel PHP #laravel #php #laraveltip #laratips

🎬 More from Laratips