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
Laravel5.5 - Package Auto Discoveryを理解する
Search
k-kurikuri
September 13, 2017
Programming
0
1.1k
Laravel5.5 - Package Auto Discoveryを理解する
LaraLa vol.1 LT資料
k-kurikuri
September 13, 2017
Tweet
Share
More Decks by k-kurikuri
See All by k-kurikuri
Awesome goにあるOSSをGithubStar数高い順に出力するツールを作った
k_kurikuri
0
580
Laravel Sparkでサービス開発に注力する
k_kurikuri
0
1.1k
GKEとGaurunで作るPush通知サーバ
k_kurikuri
3
420
Lambdaで勤怠連絡
k_kurikuri
1
1.5k
Starting Laravel Spark
k_kurikuri
0
400
[Laravel5.6]CHANGELOGを斜め読み
k_kurikuri
0
5k
GoビギナーがGCPでGoアプリをリリースした話
k_kurikuri
1
850
英語で質問した話を 聞いて欲しい
k_kurikuri
0
240
Laravelで乙女ゲームを開発した話
k_kurikuri
2
600
Other Decks in Programming
See All in Programming
イベント駆動で成長して委員会
happymana
1
340
RubyLSPのマルチバイト文字対応
notfounds
0
120
WebAssembly Unleashed: Powering Server-Side Applications
chrisft25
0
360
CSC509 Lecture 12
javiergs
PRO
0
160
受け取る人から提供する人になるということ
little_rubyist
0
260
DevTools extensions で 独自の DevTool を開発する | FlutterKaigi 2024
kokiyoshida
0
140
Hotwire or React? ~アフタートーク・本編に含めなかった話~ / Hotwire or React? after talk
harunatsujita
1
120
Less waste, more joy, and a lot more green: How Quarkus makes Java better
hollycummins
0
120
Flutterを言い訳にしない!アプリの使い心地改善テクニック5選🔥
kno3a87
1
220
Creating a Free Video Ad Network on the Edge
mizoguchicoji
0
130
Jakarta EE meets AI
ivargrimstad
0
300
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
110
Featured
See All Featured
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.2k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
0
140
It's Worth the Effort
3n
183
27k
Code Review Best Practice
trishagee
64
17k
The Pragmatic Product Professional
lauravandoore
31
6.3k
Designing the Hi-DPI Web
ddemaree
280
34k
Gamification - CAS2011
davidbonilla
80
5k
Art, The Web, and Tiny UX
lynnandtonic
297
20k
Happy Clients
brianwarren
98
6.7k
Designing for humans not robots
tammielis
250
25k
Transcript
Laravel5.5 Package Auto DiscoveryΛཧղ͢Δ k-kurikuri@LaraLab vol.1
ΞδΣϯμ • Package Auto Discoveryͷ֓ཁ • ۩ମྫΛͬͯϝϦοτͷઆ໌ • Package Auto
DiscoveryͷΈ • ·ͱΊ
ࣗݾհ • 2͘Β͍LaravelϚϯ • ιʔγϟϧήʔϜ։ൃͯ͠ΔΤϯδχΞ • Twitter, Github@k-kurikuriͰͬͯ·͢
ॕ Laravel5.5 LTS ϦϦʔε!
Laravel5.5Ͱಋೖ͞Εͨ Package Auto Discoveryͷ Έʹ͍ͭͯղઆ
Package Auto Discoveryͱ? • ༁ύοέʔδ(composer)ͷࣗಈݕग़ • Laravel༻ʹ࡞͞ΕͨύοέʔδͷServiceProvider, FacadeΛcomposer installޙɺࣗಈͰϩʔυͯ͘͠ΕΔ •
composer remove࣌ࣗಈϩʔυ͠ͳ͘ͳΔ • Package Auto DiscoveryΛΞϓϦଆͰແޮʹ͢Δ͜ͱ Մೳ
laravel-debugbar ϓϩϑΝΠϥʔΛྫʹઆ໌
͜Μ
laravel-debugbarͷinstallखॱ • composer require -dev laravel-debugbar • app.phpͷprovider, aliasesΩʔʹ֘͢Δ ServiceProvider,
FacadeΛιʔεʹՃ͢Δ php artisan vendor:publishखॱͱͯ͋͠Γ·͕͢ɺ Auto Package Discoveryͱؔͳ͍ͨΊׂѪ
laravel-debugbarͷinstallखॱ • composer require -dev laravel-debugbar • app.phpͷprovider, aliasesΩʔʹ֘͢Δ ServiceProvider,
FacadeΛιʔεʹՃ͢Δ
Auto Package Discoveryͷ Έ • composer.jsonͷ{“extra” : ”laravel"}͔Β ServiceProvider, FacadeΛࣗಈϩʔυ
• composer installޙʹ࡞͞ΕΔɺvendor/ composer/installed.json͔Β࣮ࡍϩʔυ͢Δ • Laravelىಈ࣌ʹطଘͷServiceProvider, Facadeͷ ྻϦετʹϚʔδ͞ΕॳظԽ͞ΕΔ
"extra": { "laravel": { "providers": [ "Barryvdh\\Debugbar\\ServiceProvider" ], "aliases": {
"Debugbar": "Barryvdh\\Debugbar\\Facade" } } } laravel-debugbarͷ composer.jsonΛҰ෦ൈਮ
"extra": { "laravel": { "dont-discover": [ ] } } ΞϓϦέʔγϣϯͷcomposer.jsonൈ
ਮ
·ͱΊ • composerϥΠϒϥϦΛ͏ࡍɺΈΛಛʹؾʹ͠ͳ ͍Ͱ͑Δ • composer.jsonͷ{“extra” : “laravel”}ʹରԠͯ͠ͳ͍ϥΠϒ ϥϦʹదԠ͞Εͳ͍ •
ࣗ࡞ͰcomposerΛެ։͢Δ࣌ʹ{“extra” : “laravel”}Λઃ ఆ͢ΔͱϢʔβʔϑϨϯυϦʔʹ • ·͊ɺͱʹ͔͘ศརʹͳͬͨʂ(ڧҾ)
͝੩ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠