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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
Oxlint JS plugins
kazupon
1
1k
React Native × React Router v7 API通信の共通化で考えるべきこと
suguruooki
0
100
FOSDEM 2026: STUNMESH-go: Building P2P WireGuard Mesh Without Self-Hosted Infrastructure
tjjh89017
0
180
CSC307 Lecture 05
javiergs
PRO
0
500
生成AIを活用したソフトウェア開発ライフサイクル変革の現在値
hiroyukimori
PRO
0
100
20260127_試行錯誤の結晶を1冊に。著者が解説 先輩データサイエンティストからの指南書 / author's_commentary_ds_instructions_guide
nash_efp
1
990
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
690
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
200
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
200
Raku Raku Notion 20260128
hareyakayuruyaka
0
360
Fluid Templating in TYPO3 14
s2b
0
130
Vibe Coding - AI 驅動的軟體開發
mickyp100
0
180
Featured
See All Featured
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
62
50k
Odyssey Design
rkendrick25
PRO
1
500
Utilizing Notion as your number one productivity tool
mfonobong
3
220
How Software Deployment tools have changed in the past 20 years
geshan
0
32k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.7k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.6k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Done Done
chrislema
186
16k
Building Applications with DynamoDB
mza
96
6.9k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
130
How to make the Groovebox
asonas
2
1.9k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
120
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