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
590
Laravel Sparkでサービス開発に注力する
k_kurikuri
0
1.1k
GKEとGaurunで作るPush通知サーバ
k_kurikuri
3
430
Lambdaで勤怠連絡
k_kurikuri
1
1.5k
Starting Laravel Spark
k_kurikuri
0
410
[Laravel5.6]CHANGELOGを斜め読み
k_kurikuri
0
5.1k
GoビギナーがGCPでGoアプリをリリースした話
k_kurikuri
1
860
英語で質問した話を 聞いて欲しい
k_kurikuri
0
240
Laravelで乙女ゲームを開発した話
k_kurikuri
2
600
Other Decks in Programming
See All in Programming
今年のアップデートで振り返るCDKセキュリティのシフトレフト/2024-cdk-security-shift-left
tomoki10
0
240
CQRS+ES の力を使って効果を感じる / Feel the effects of using the power of CQRS+ES
seike460
PRO
0
170
どうして手を動かすよりもチーム内のコードレビューを優先するべきなのか
okashoi
3
640
PSR-15 はあなたのための ものではない? - phpcon2024
myamagishi
0
180
StarlingMonkeyを触ってみた話 - 2024冬
syumai
3
290
Fibonacci Function Gallery - Part 1
philipschwarz
PRO
0
230
「とりあえず動く」コードはよい、「読みやすい」コードはもっとよい / Code that 'just works' is good, but code that is 'readable' is even better.
mkmk884
4
860
見えないメモリを観測する: PHP 8.4 `pg_result_memory_size()` とSQL結果のメモリ管理
kentaroutakeda
0
760
Go の GC の不得意な部分を克服したい
taiyow
3
850
Spatial Rendering for Apple Vision Pro
warrenm
0
180
nekko cloudにおけるProxmox VE利用事例
irumaru
3
460
コンテナをたくさん詰め込んだシステムとランタイムの変化
makihiro
1
150
Featured
See All Featured
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Raft: Consensus for Rubyists
vanstee
137
6.7k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
530
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
48
2.2k
The Pragmatic Product Professional
lauravandoore
32
6.3k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
It's Worth the Effort
3n
183
28k
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
Into the Great Unknown - MozCon
thekraken
34
1.5k
How STYLIGHT went responsive
nonsquared
96
5.2k
Designing Experiences People Love
moore
138
23k
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”}Λઃ ఆ͢ΔͱϢʔβʔϑϨϯυϦʔʹ • ·͊ɺͱʹ͔͘ศརʹͳͬͨʂ(ڧҾ)
͝੩ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠