Laravel Advanced - Making Laravel Collection Clone

  Рет қаралды 4,519

Laratips

Laratips

Күн бұрын

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

Пікірлер: 8
@bashardlaleh2110
@bashardlaleh2110 2 жыл бұрын
it's fun to tackle these uncommon stuff
@Laratips
@Laratips 2 жыл бұрын
Absolutely.
@rahulkumarsingh1716
@rahulkumarsingh1716 2 жыл бұрын
Nicely explained. Loved that !!!
@Laratips
@Laratips 2 жыл бұрын
Thanks. Subscribe for more.
@mikeygaming4226
@mikeygaming4226 2 жыл бұрын
Mama sanchai
@Laratips
@Laratips 2 жыл бұрын
Sanchai mero vanja ❤️❤️
@jackrourke9237
@jackrourke9237 2 жыл бұрын
You're Nepali 😮😮😮, 😁 😁 😁 Nice to see from Nepali guys solving uncommon problems for programmers ♥ ♥ ♥ ♥
@Laratips
@Laratips 2 жыл бұрын
Yes I am. ❤️
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 8 МЛН
Get Data From Multiple Databases In One Project | Laravel Tip
11:52
Laravel Security: Top 7 Mistakes Developers Make
11:16
Laravel Daily
Рет қаралды 82 М.
Laravel Advanced - Has Many Through Relationship
20:03
Laratips
Рет қаралды 7 М.
Laravel Collections vs Arrays: Performance Test
6:45
Laravel Daily
Рет қаралды 25 М.
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 8 МЛН