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
Outline View in SwiftUI
1024jp
1
110
ECS Service Connectのこれまでのアップデートと今後のRoadmapを見てみる
tkikuc
2
210
gopls を改造したら開発生産性が高まった
satorunooshie
8
240
Universal Linksの実装方法と陥りがちな罠
kaitokudou
1
220
僕がつくった48個のWebサービス達
yusukebe
18
17k
Kubernetes for Data Engineers: Building Scalable, Reliable Data Pipelines
sucitw
1
200
Modern Angular: Renovation for Your Applications
manfredsteyer
PRO
0
200
詳細解説! ArrayListの仕組みと実装
yujisoftware
0
480
現場で役立つモデリング 超入門
masuda220
PRO
12
2.9k
/←このスケジュール表に立ち向かう フロントエンド開発戦略 / A front-end development strategy to tackle a single-slash schedule.
nrslib
1
590
JaSST 24 九州:ワークショップ(は除く)実践!マインドマップを活用したソフトウェアテスト+活用事例
satohiroyuki
0
260
生成 AI を活用した toitta 切片分類機能の裏側 / Inside toitta's AI-Based Factoid Clustering
pokutuna
0
570
Featured
See All Featured
Practical Orchestrator
shlominoach
186
10k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.2k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
228
52k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
664
120k
How to Ace a Technical Interview
jacobian
275
23k
Designing for humans not robots
tammielis
249
25k
A better future with KSS
kneath
238
17k
The Cult of Friendly URLs
andyhume
78
6k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.9k
Code Review Best Practice
trishagee
64
17k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
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”}Λઃ ఆ͢ΔͱϢʔβʔϑϨϯυϦʔʹ • ·͊ɺͱʹ͔͘ศརʹͳͬͨʂ(ڧҾ)
͝੩ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠