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
15
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
26
Other Decks in Programming
See All in Programming
15年続くIoTサービスのSREエンジニアが挑む分散トレーシング導入
melonps
2
230
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
2.1k
CSC307 Lecture 09
javiergs
PRO
1
840
今から始めるClaude Code超入門
448jp
8
9k
Grafana:建立系統全知視角的捷徑
blueswen
0
330
CSC307 Lecture 03
javiergs
PRO
1
490
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
610
AgentCoreとHuman in the Loop
har1101
5
240
AIによる開発の民主化を支える コンテキスト管理のこれまでとこれから
mulyu
3
470
Oxlint JS plugins
kazupon
1
1k
AIによる高速開発をどう制御するか? ガードレール設置で開発速度と品質を両立させたチームの事例
tonkotsuboy_com
7
2.4k
izumin5210のプロポーザルのネタ探し #tskaigi_msup
izumin5210
1
140
Featured
See All Featured
Raft: Consensus for Rubyists
vanstee
141
7.3k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
66
37k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.3k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
42k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.3k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
77
The Limits of Empathy - UXLibs8
cassininazir
1
220
エンジニアに許された特別な時間の終わり
watany
106
230k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.7k
Being A Developer After 40
akosma
91
590k
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