Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
駆け出しエンジニアのコードをレビューしてみた
Search
大塚真言
May 16, 2019
Programming
1.6k
4
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
駆け出しエンジニアのコードをレビューしてみた
大塚真言
May 16, 2019
More Decks by 大塚真言
See All by 大塚真言
自社プロダクトを作ってみた.pdf
shingen29
0
340
CI/CD実践入門! GitHub ActionsでCI/CD環境を作ってみよう!
shingen29
0
160
CI/CD実践入門! GitHub ActionsでCI/CD環境を作ってみよう!
shingen29
0
340
ユースケース駆動開発で自社プロダクトを作ってみた!
shingen29
1
8.2k
MDN Web Docsから学ぶ 公式ドキュメントを読むメリット
shingen29
0
960
PHP8をざっくり解説してみる
shingen29
0
370
最近のプロジェクトを振り返ってみる
shingen29
0
450
Style Guideとstylelintを使ってHTML/CSSを綺麗に書こう!
shingen29
2
950
Stripe CLIを触ってみた!
shingen29
1
290
Other Decks in Programming
See All in Programming
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
170
現場と育てるRailsモデリング 〜Spreadsheetから始めたモデル設計〜
siroemk
2
1.1k
【加筆修正版】Laravel のアプリケーションをどこにデプロイするか #phpcon_ehime
akase244
0
160
Event is what happens
moro
2
1.7k
パスワード再設定メールのURLについて知っておこう
uyuki234
0
190
Lambda durable functionsでHuman in the Loopを楽に…楽に……
har1101
2
210
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
450
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
2
1.5k
AI時代のIaC入門 〜なぜインフラをコードで管理したいのか?〜 / Introduction to IaC in the AI Era
akihisaikeda
5
1.1k
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
190
contenteditable と日本語入力に向き合う
colorful12
0
230
dotNET_vulnclicker_intro.pdf
deka_morita
0
150
Featured
See All Featured
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
530
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
740
Bash Introduction
62gerente
615
220k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
Code Review Best Practice
trishagee
74
20k
Paper Plane (Part 1)
katiecoart
PRO
2
12k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
310
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
600
The SEO Collaboration Effect
kristinabergwall1
1
600
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Mobile First: as difficult as doing things right
swwweet
225
10k
Balancing Empowerment & Direction
lara
6
1.3k
Transcript
ۦ͚ग़͠ΤϯδχΞͷίʔυΛ ϨϏϡʔͯ͠Έͨ 2019/05/16 Laravel Meetup Miyazaki #1 େ௩ਅݴ
ຊͷྲྀΕ • ࣗݾհ • ۦ͚ग़͠ΤϯδχΞͱ • ݚम༰ʹ͍ͭͯ • ϨϏϡʔͯ͠Έͨ
ࣗݾհ
ࣗݾհ ɾ໊લɹɿେ௩ ਅݴʢ͠Μ͛Μʣ ɾTwitterɿ@mametra ɾॴଐɹɿ߹ಉձࣾϊϚυϦ ද ɾεΩϧɿLaravel, Vue.js, Firebase ɾझຯɹɿΩϟϯϓ,
ϑΣε ɾࣄɹɿLaravelͰͷWebγεςϜ։ൃ HTML5ϋΠϒϦουΞϓϦ։ൃ
None
ۦ͚ग़͠ΤϯδχΞͱ
ۦ͚ग़͠ΤϯδχΞͱ • ϓϩάϥϛϯάΛษڧ࢝͠Ίͯ1ະຬ • ৽ଔ࣮͘͠ܦݧ͕ઙ͍ • TwitterͰ XXX@ۦ͚ग़͠ΤϯδχΞ ͱ໊ͬ ͍ͯΔ
ݚम༰ʹ͍ͭͯ
Πϯλʔϯੜͷհ • ٶ͘Μ • ٶ࡚ެཱେֶ4 • ϓϩάϥϛϯάྺ1 • Laravel,PHPະܦݧ •
ٶຊ͘Μ • ٶ࡚େֶ2 • ϓϩάϥϛϯάྺ1 • Laravel,PHPະܦݧ
ݚम༰ • Նࠒ·Ͱʹ࣮ՄೳͳεΩϧΛ͚ͭΔ • Laravel੨ຊɺެࣜνϡʔτϦΞϧΛྃ • 3݄͔Β࣮ફԋशΛ։࢝
࣮ફԋश • ITษڧձαʔϏεΛύΫΔࢀߟ • ཁ݅ఆٛʙઃܭʙ࣮ʙςετ • ୲ػೳΛׂΓৼΓɺϓϧϦΫϕʔεͰ࣮
None
None
None
None
ϨϏϡʔͯ͠Έͨ
ϨϏϡʔͱ • ιϑτΣΞ࣭ͷ্͓Αͼଐਓੑͷഉআ • εΩϧͷ্ٴͼφϨοδͷڞ༗ • ϨϏϡʔίʔυʹରͯ͠ߦ͏
ϨϏϡʔର • EventController • લఏ݅ • ϧʔςΟϯάఆٛࡁΈ • ModelϦϨʔγϣϯͷΈ ΞΫγϣϯ
ػೳ JOEFY Ұཡදࣔ DSFBUF ৽ن࡞ TUPSF ొ TIPX ৄࡉදࣔ FEJU ฤू VQEBUF ߋ৽ EFMFUF আ
None
None
None
None
ϨϏϡʔํ • 200ߦͷ Fat Controller ղফΛ࠷༏ઌ • RequestɺServiceΛՃ • Fat
Model ΛͭΉΔ
ୈ1
None
ୈ1 • FormRequestΫϥεͷಋೖ • όϦσʔγϣϯͱલॲཧʢՃʣΛ࣮ • store, updateϝιουͷҾʹ FormRequestΫϥεΛλΠϓώϯτͰࢦఆ •
ϝιου͕ݺͼग़͞ΕΔલʹόϦσʔγϣϯ
None
None
200 → 150
ୈ2
None
ୈ2 • ΞΫηαͱappendsͷ༻ • appendsΛ͏͜ͱͰɺςʔϒϧʹͳ͍ΧϥϜ ΛEventΦϒδΣΫτͷϓϩύςΟʹՃͰ͖Δ • ΞΫηαʹऔΓ͏ΔΛఆٛ͢Δ • EventΦϒδΣΫτ͔ΒՃͨ͠ϓϩύςΟΛऔ
ಘͰ͖Δ
None
None
None
150 → 130
ୈ3
None
ୈ3 • ServiceΫϥεͷಋೖ • ϏδωεϩδοΫControllerʹॻ͔ͳ͍ • EventServiceΫϥείϯετϥΫλʔΠϯ δΣΫγϣϯʹΑΓEventControllerͰΞΫ ηεՄೳʹͳΔ
None
None
130 → 85
None
None
·ͱΊ
·ͱΊ • Fat ControllerݏΘΕΔͷͰεϦϜΛҙࣝ͢Δ • RequestServiceͳͲಛఆͷΛ࣋ͬͨ ΫϥεʹΘ͚Δͱશମͱͯ͠ͷݟ௨্͕͢͠Δ • ServiceͱModelͷؒʹRepositoryΛೖΕ ΔϨΠΞʔυΞʔΩςΫνϟ͋ͬͨΓɺ
Laravelࣗ༝͕ߴ͘ɺۦ͚ग़͠ΤϯδχΞΛ ໎ΘͤΔ͜ͱ͕ଟ͍
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ