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
KKA (賢いかわいいartisan)
Search
Shoko Okochi
June 10, 2016
Technology
0
160
KKA (賢いかわいいartisan)
2016/06/10 第3回ぐるなびエンジニアLT大会
Shoko Okochi
June 10, 2016
Tweet
Share
More Decks by Shoko Okochi
See All by Shoko Okochi
Join EDP as working member of society
okohs
0
960
健康を取りもどすために 私がやった1つのこと
okohs
1
390
stretch opportunities #wtm17
okohs
0
190
転職したら転職しやすくなった #zohyomeetup
okohs
1
490
師匠(SENSEI)を見つけよう
okohs
0
260
集中 #innocafe
okohs
0
180
全社員早押上司争奪戦 #MA_2016 #forPro決勝戦
okohs
0
1.3k
社内でチーム作ってMashup Awards出た #dodosoft
okohs
0
86
全社員早押上司争奪戦 #MA_2016
okohs
0
1.1k
Other Decks in Technology
See All in Technology
効率的な技術組織が作れる!書籍『チームトポロジー』要点まとめ
iwamot
2
180
The key to VCP-VCF
mirie_sd
0
140
[Oracle TechNight#85] Oracle Autonomous Databaseを使ったAI活用入門
oracle4engineer
PRO
1
200
AWS環境におけるランサムウェア攻撃対策の設計
nrinetcom
PRO
1
310
[トレノケ雲の会 mod.13] 3回目のre:Inventで気づいたこと -CloudOperationsを添えて-
shintaro_fukatsu
0
120
サイバー攻撃を想定したセキュリティガイドライン 策定とASM及びCNAPPの活用方法
syoshie
3
1.6k
AWS re:Invent 2024 ふりかえり勉強会
yhana
0
680
UI State設計とテスト方針
rmakiyama
4
930
React Routerで実現する型安全なSPAルーティング
sansantech
PRO
2
420
日本版とグローバル版のモバイルアプリ統合の開発の裏側と今後の展望
miichan
1
340
30分でわかるデータ分析者のためのディメンショナルモデリング #datatechjp / 20250120
kazaneya
PRO
11
3.2k
事業貢献を考えるための技術改善の目標設計と改善実績 / Targeted design of technical improvements to consider business contribution and improvement performance
oomatomo
0
240
Featured
See All Featured
GitHub's CSS Performance
jonrohan
1030
460k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.2k
How to Think Like a Performance Engineer
csswizardry
22
1.3k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
Six Lessons from altMBA
skipperchong
27
3.5k
Learning to Love Humans: Emotional Interface Design
aarron
274
40k
Building Adaptive Systems
keathley
38
2.3k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Automating Front-end Workflow
addyosmani
1366
200k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
28
4.4k
A Tale of Four Properties
chriscoyier
157
23k
The Language of Interfaces
destraynor
155
24k
Transcript
KKA ͠ΐ͜ (@okoysm)
KKA #ͱ ൃදऀͷ΅͖Λ͜͜ʹॻ͍ͯΔΑʂ
͔͍͜͠ɾ͔Θ͍͍ $7ೆᑍѪ೫
ΤϦʔνΧʂ (ग़యɿϥϒϥΠϒʂ)
Ͱͳ͘ ,,&Ͱ͖ͨͷͰࠓͷൃදຬ
Artisan BSUJTBOϑϥϯεޠͰʮ৬ਓʯͱ͍͏ҙຯͰ͢ $ php artisan serve ͋ʔͯ͌͟Μ
ࠓLaravelͷ૬ “artisan” ʹ͍ͭͯ͠·͢ ޙΖͷϩΰ-BSBWFMͷϩΰͩΑʂ
Agenda • ࣗݾհ • ݡ͍͔Θ͍͍artisan • ͜Μͳʹݡ͍artisan • LaravelಋೖϋϚϦͲ͜Ζ ͘ͳΓͦ͏ͳͷͰৄ͘͠8FCͰʂ͢Δ༧ఆ
Who am I?
দଜᠳࢠ (@okoysm) • ϨετϥϯαʔϏε։ൃɾӡ༻ηΫγϣϯ αʔναʔϏε։ൃάϧʔϓ ݕࡧνʔϜ (2016.3ೖࣾ) • લ৬ɿFlex/ActionScript/Java •
Geek Women Japan / dots.ঁࢠ෦ ӡӦ • ʮΤϯδχΞɹ͠ΐ͜ʯͰάάΕେମࢲͷใ • αοΫεਧ͖ϥϒϥΠόʔʢՖཅਪ͠ʣ ཉ͍͠ͷɿڧ͍݈߁ͳମɻମྗ͕ͳ͍ɻ
͖ͳͷ ͍ͬͺ͍͋Γ·͢
ٕज़͕େ͖Ͱ ࣗଞڞʹೝΊΔࡶ৯
৽͍͠ͷ͕େ͖Ͱ ελόͷ৽ϝχϡʔΑΓ৽͍ٕ͠ज़͕ؾʹͳΔ
ϓϨθϯ͕େ͖͔ͩͬͨΒ
ΤϯδχΞLTେձॳࢀՃͰ ొஃͯ͠·͢ ̍͘͜͜Β͍݄̍Ҏ্Ͱൃදͯ͠·͢
ຊ
ݡ͍͔Θ͍͍artisan
artisanͷΛ͢Δલʹ
Έͳ͞Μ Laravelͬͨ͜ͱ͋Γ·͔͢ʁ
1. ͦͦLaravelͬͯԿʁ 2. ͬͯΔ͚Ͳ৮ͬͨ͜ͱͳ͍ 3. Hello World͠·ͨ͠ 4. Laravelͷ͜ͱͳΒԶʹͤΖ Questionnaire
͋Γ͕ͱ͏͍͟͝·͢ʂ ޱ಄આ໌͢Δͱ͖ͷࢀߟʹ͠·͢ʂ
Laravelͱ • ։ൃͷ্Λࢦͨ͠ϑϧελοΫͳ PHPϑϨʔϜϫʔΫɻ • ࠷৽όʔδϣϯ5.2 (LTS5.1) • RailsͬΆ͍ϑϨʔϜϫʔΫͱݴΘΕΔ͚Ͳͦ Μͳ͜ͱͳ͍ʢଟσΟϨΫτϦߏ͘Β͍ʣ
໊લՄѪ͍͚Ͳ৬ਓ͚ͷϑϨʔϜϫʔΫ
Laravelͷಛ • ଟछଟ༷ͳόϦσʔγϣϯϧʔϧ • ༰қͳ֦ுੑ • ॊೈͳαʔϏε (DI) ίϯςφ •
͍͘͢༻४උͷख͕͔͔ؒΒͳ͍ORM • ࣮ߦ͍͢͠ςετ ग़యɿ-BSBWFMϦϑΝϨϯε
artisanͱ • PHPͷϑϨʔϜϫʔΫLaravelͰͳͯ͘ͳ Βͳ͍ίϚϯυ܈ • ԿΛ͢ΔʹͱΓ͋͑ͣartisanʹཔΕ͍͍ -BSBWFM։ൃʹͳͯ͘ͳΒͳ͍ଘࡏͳΜͰ͢
ຊʹ͔͍͜͠artisan • Laravelartisanͷ͓͔͛Ͱ͔ͳΓָ • ϩʔΧϧαʔόʔཱͯͨΓ • ͍͍ײ͡ͷςʔϒϧΛDB্ʹ࡞ͯ͠ૢ࡞ͨ͠Γ • ͍͍ײ͡ͷܗ࡞ͬͨΓ •
ͦ͏ɺartisanͳΒͶ ͍͔ʹݡ͍͔ݟ͍͖ͤͯ·͢Αʔʂ
͜Μͳʹݡ͍artisan
ྫ͑ • ϒϩάΞϓϦέʔγϣϯΛ࡞ͬͯΈΔ • Ϣʔβʔొ/ೝূ/ϩάΠϯ • ϒϩάهࣄཧ • ϒϩάදࣔ •
ίϝϯτߘ -BSBWFMαϯϓϧϒϩά͕ଟ͍ؾ͕͍ͯ͠Δ
։ൃڥ • Larval Homestead • ެࣜVagrant Box • VagrantͱVirtual Box͕ϩʔΧϧʹ͋Ε͙͢
͑Δ • Ubuntu 14.04, Nginx, MySQL, PostgreSQL, Node.js, MemcachedͳͲҰ௨Γೖ͍ͬͯΔ ໘ͳ։ൃڥߏங)PNFTUFBEͰ؆୯ʹʂ
σʔλϕʔεͷ४උ • ϢʔβʔΛཧ͢Δςʔϒϧ • ඪ४Ͱ༻ҙ͞Ε͍ͯΔusersςʔϒϧΛར༻ • ϒϩάͷهࣄΛཧ͢Δςʔϒϧ • ίϝϯτΛཧ͢Δςʔϒϧ •
৽ͨʹ࡞Δඞཁ͋Γʂ Ϣʔβʔཧ͕ඪ४Ͱ༻ҙ͞ΕͯΔͷͰ४උ͢Δ ςʔϒϧ͕ͭݮΔͶʂ
खॱ 1. ϚΠάϨʔγϣϯͱEloquentϞσϧΛ࡞ 2. ࡞͞ΕͨܗΛฤू 3. σʔλϕʔεΛ࡞͢Δ $ php
artisan make:model DataAccess¥¥Eloquent¥¥Comment -m $ php artisan make:model DataAccess¥¥Eloquent¥¥Entry -m $ php artisan migrate —seed खॱͰ࣮ࡍͷςʔϒϧ໊ΧϥϜͷઃఆߦ͏Α
σʔλϕʔε࡞ྃʂ $ mysql -u homestead -psecret homestead mysql> show tables;
+——————————————————-+ |Tables_in_homestead| +——————————————————-+ |comments | |entries | |migrations | |users | +——————————————————-+ NZTRMϩάΠϯ͠ͳͯ͘Ͱ͖ͪΌ͏ʂ
͕࣌ؒΓͳͦ͞͏ͳͷͰ ࠓ͜͜·Ͱ ϥϥாͱ͔ݟΕϒϩάͷTBNQMF͕͋Δͣ
LaravelಋೖϋϚϦͲ͜Ζ
ϋϚͬͨ͜ͱେମ Confluenceʹॻ͖·ͨ͠ ͏ ηογϣϯͰ͖ΔϨϕϧ
Confluenceʹॻ͍ͯ͋Δ͜ͱ • ڥߏங • Oracle DBͷଓํ๏ • Laravel5.1͔Β5.2Ҏ߱ʹΞοϓσʔτ͢Δ࣌ʹؾΛ͚ͭΔ͜ͱ • Կͯ͠ͳ͍ͷʹartisan͕Exceptionు͘Α͏ʹͳͬͨ
• *.blade.php͕ಡ·Εͳ͍ • LaravelΛApacheͷαϒσΟϨΫτϦʹΠϯετʔϧ͢Δʹ • ͙Δͳͼ։ൃͰೖΕ͓͖͍ͯͨLaravelͷύοέʔδ • ϩάग़ྗઌɾग़ྗϨϕϧͷมߋํ๏ • σϓϩΠઌͰಈ͔ͳ͍߹ͷτϥϒϧγϡʔτ Ұ௨Γͭ·͍ͣͨɻਏ͔ͬͨɻ
ৄ͘͠Confluence ʮLaravelϊϋʯͰݕࡧʂ ٕज़ܥͷڞ༗εϖʔε$POqVFODFʹཉ͍͠ʂ
ࢀߟϦϯΫ • Laravel ϦϑΝϨϯε[Ver.5.1 LTS ରԠ] Web৬ਓΈͷ৽ੈ PHPϑϨʔϜϫʔΫ ৽ݪ խ࢘
• https://www.amazon.co.jp/dp/B019ONT9R8/ ref=cm_sw_r_tw_dp_eOcwxb2BCDCPY • ϥϥா • https://laravel10.wordpress.com/category/%E3%81%AF %E3%81%98%E3%82%81%E3%81%A6%E3%81%AE- laravel-5-1/ -BSBWFMϦϑΝϨϯε͍ͭͰି͠·͢ʂ
THANK YOU!! ͠ΐ͜ (@okoysm)