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
570
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
macOS でできる リアルタイム動画像処理
biacco42
9
2.4k
EventSourcingの理想と現実
wenas
6
2.3k
Compose 1.7のTextFieldはPOBox Plusで日本語変換できない
tomoya0x00
0
190
TypeScript Graph でコードレビューの心理的障壁を乗り越える
ysk8hori
2
1.1k
シールドクラスをはじめよう / Getting Started with Sealed Classes
mackey0225
4
640
Realtime API 入門
riofujimon
0
150
Macとオーディオ再生 2024/11/02
yusukeito
0
370
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
100
Webの技術スタックで マルチプラットフォームアプリ開発を可能にするElixirDesktopの紹介
thehaigo
2
1k
Click-free releases & the making of a CLI app
oheyadam
2
110
Quine, Polyglot, 良いコード
qnighy
4
640
どうして僕の作ったクラスが手続き型と言われなきゃいけないんですか
akikogoto
1
120
Featured
See All Featured
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
[RailsConf 2023] Rails as a piece of cake
palkan
52
4.9k
Designing on Purpose - Digital PM Summit 2013
jponch
115
7k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
25
1.8k
Six Lessons from altMBA
skipperchong
27
3.5k
Writing Fast Ruby
sferik
627
61k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
109
49k
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”}Λઃ ఆ͢ΔͱϢʔβʔϑϨϯυϦʔʹ • ·͊ɺͱʹ͔͘ศརʹͳͬͨʂ(ڧҾ)
͝੩ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠