Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Getting to grips with Laravel Collections
Search
Nathan Dunn
July 16, 2019
Programming
0
14
Getting to grips with Laravel Collections
Nathan Dunn
July 16, 2019
Tweet
Share
More Decks by Nathan Dunn
See All by Nathan Dunn
A Point of Vue
nathanjdunn
0
24
Other Decks in Programming
See All in Programming
Android 16 × Jetpack Composeで縦書きテキストエディタを作ろう / Vertical Text Editor with Compose on Android 16
cc4966
2
260
奥深くて厄介な「改行」と仲良くなる20分
oguemon
1
560
Design Foundational Data Engineering Observability
sucitw
3
200
「手軽で便利」に潜む罠。 Popover API を WCAG 2.2の視点で安全に使うには
taitotnk
0
870
Amazon RDS 向けに提供されている MCP Server と仕組みを調べてみた/jawsug-okayama-2025-aurora-mcp
takahashiikki
1
110
FindyにおけるTakumi活用と脆弱性管理のこれから
rvirus0817
0
530
Oracle Database Technology Night 92 Database Connection control FAN-AC
oracle4engineer
PRO
1
470
パッケージ設計の黒魔術/Kyoto.go#63
lufia
3
440
ProxyによるWindow間RPC機構の構築
syumai
3
1.2k
Improving my own Ruby thereafter
sisshiki1969
1
160
アルテニア コンサル/ITエンジニア向け 採用ピッチ資料
altenir
0
110
ぬるぬる動かせ! Riveでアニメーション実装🐾
kno3a87
1
230
Featured
See All Featured
Writing Fast Ruby
sferik
628
62k
Typedesign – Prime Four
hannesfritz
42
2.8k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
358
30k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.7k
GraphQLとの向き合い方2022年版
quramy
49
14k
Art, The Web, and Tiny UX
lynnandtonic
303
21k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
131
19k
Building Better People: How to give real-time feedback that sticks.
wjessup
368
19k
Rails Girls Zürich Keynote
gr2m
95
14k
Code Reviewing Like a Champion
maltzj
525
40k
Transcript
Getting to grips with Laravel Collections @nathanjdunn
None
❤
;
None
None
;
None
What are we looking for? • Consistency • Readability •
Chainability
None
None
Installing outside Laravel composer require tightenco/collect
Creating Collections
The basics
each
map
filter
filter
filter
reduce
chunk
None
Finding items
where
whereIn
whereBetween
whereInstanceOf
None
Debugging
dd
dump
Formatting
toArray
toJson
A deeper dive
None
tap
pipe
when
wrap
Higher order messages
Higher order messages
None
None
Short Arrow Functions
In conclusion... • 114 collection methods (and counting!) • Take
a dive into the docs • Have a go yourself!
None