Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
PhpStormでLaravelでの開発を楽に
Search
takamichi
February 26, 2016
Programming
0
270
PhpStormでLaravelでの開発を楽に
2/26(金) Laravel もくもく会 in 大阪 #1 LT発表分
https://gist.github.com/takamichi/72e7707169ed9b90a5dd
takamichi
February 26, 2016
Tweet
Share
Other Decks in Programming
See All in Programming
手軽に積ん読を増やすには?/読みたい本と付き合うには?
o0h
PRO
1
170
まだ間に合う!Claude Code元年をふりかえる
nogu66
5
750
Microservices Platforms: When Team Topologies Meets Microservices Patterns
cer
PRO
1
1k
AIコーディングエージェント(skywork)
kondai24
0
160
Navigation 3: 적응형 UI를 위한 앱 탐색
fornewid
1
270
React Native New Architecture 移行実践報告
taminif
1
150
tparseでgo testの出力を見やすくする
utgwkk
1
190
TUIライブラリつくってみた / i-just-make-TUI-library
kazto
1
370
dnx で実行できるコマンド、作ってみました
tomohisa
0
140
大体よく分かるscala.collection.immutable.HashMap ~ Compressed Hash-Array Mapped Prefix-tree (CHAMP) ~
matsu_chara
1
220
「コードは上から下へ読むのが一番」と思った時に、思い出してほしい話
panda728
PRO
38
25k
dotfiles 式年遷宮 令和最新版
masawada
1
750
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
Six Lessons from altMBA
skipperchong
29
4.1k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
7.8k
GitHub's CSS Performance
jonrohan
1032
470k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
1
94
How to Ace a Technical Interview
jacobian
280
24k
[RailsConf 2023] Rails as a piece of cake
palkan
58
6.1k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.7k
YesSQL, Process and Tooling at Scale
rocio
174
15k
How GitHub (no longer) Works
holman
316
140k
Navigating Team Friction
lara
191
16k
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
Transcript
2/26(ۚ) Laravel ͘͘ձ in େࡕ #1 PhpStormͰLaravelͰͷ։ൃΛָʹ Takamichi Urata (@takamichi_u)
Laravel 5 IDE Helper Generator h"ps:/ /github.com/barryvdh/laravel-ide-helper ΄΅ඞधɻIDEͷਪଌީิग़͠Λॿ͚ͯ͘ΕΔ(ϑΝΠϧੜ͠ ͯ͘ΕΔ)ɻ #
ύοέʔδՃ $ composer require --dev "barryvdh/laravel-ide-helper" --devΛ͚ͭͯ։ൃڥͷΈʹՃɻ
AppServiceProvider IdeHelperServiceProvider։ൃڥʹͷΈଘࡏ͢ΔͷͰɺ ຊ൪ڥ(--no-dev)ͰΤϥʔʹͳΔͷΛ͙ɻ public function register() { if ($this->app->environment() ===
'local') { // APP_ENV=localͷͱ͖ͷΈ༗ޮԽ $this->app->register('Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider'); } }
composer.json composer updateͨ͠ͱ͖ɺউखʹੜͯ͘͠ΕΔΑ͏ʹɻ { "pre-update-cmd": [ "php artisan clear-compiled" ],
"post-update-cmd": [ "[ ! $APP_ENV = \"local\" ] || php artisan ide-helper:generate", // <= ADD "[ ! $APP_ENV = \"local\" ] || php artisan ide-helper:meta", // <= ADD "php artisan optimize" ] } _ide_helper.php, .phpstorm.meta.phpͷ.gitignoreͷ ՃΛΕͣʹɻ
Xdebug
Homestead Homestead v0.4.1͔ΒXdebugؚ͕·ΕΔΑ͏ʹ(෮׆)ɻ ͨͩ༗ޮԽ͞Ε͍ͯͳ͍ͷͰઃఆ͕ඞཁɻ (ࠓճPer Project Installa/onͰΓ·ͨ͠)ɻ Homestead.yml # த͕͜Ζ͜ΖมΘΔͷͰɺboxόʔδϣϯݻఆͨ͠ํ͕ྑͦ͞͏ɻ
provider: virtualbox version: '0.4.1' # <= ADD
a"er.sh XdebugΛ༗ޮԽ͢ΔॲཧΛɺHomesteadॳճىಈ࣌ʹΒͤΔɻ #!/usr/bin/env bash sed -i "s/max_execution_time = .*/max_execution_time =
300/" /etc/php/7.0/fpm/php.ini cat >> /etc/php/7.0/fpm/conf.d/20-xdebug.ini << EOF xdebug.remote_enable = 1 xdebug.remote_autostart = 1 #xdebug.remote_connect_back = 1 xdebug.remote_host = 10.0.2.2 xdebug.remote_port = 9000 xdebug.max_nesting_level = 512 xdebug.show_local_vars = 1 EOF service php7.0-fpm restart service nginx restart
PhpStorm ϑΥϧμͷϚοϐϯά
None
None
None
demo