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
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
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
480
Amazon Bedrockを活用したRAGの品質管理パイプライン構築
tosuri13
5
780
ぼくの開発環境2026
yuzneri
0
240
CSC307 Lecture 05
javiergs
PRO
0
500
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
250
AgentCoreとHuman in the Loop
har1101
5
240
Data-Centric Kaggle
isax1015
2
780
今こそ知るべき耐量子計算機暗号(PQC)入門 / PQC: What You Need to Know Now
mackey0225
3
380
プロダクトオーナーから見たSOC2 _SOC2ゆるミートアップ#2
kekekenta
0
220
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
430
CSC307 Lecture 04
javiergs
PRO
0
660
Raku Raku Notion 20260128
hareyakayuruyaka
0
350
Featured
See All Featured
Google's AI Overviews - The New Search
badams
0
910
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
71
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Leo the Paperboy
mayatellez
4
1.4k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
86
Building AI with AI
inesmontani
PRO
1
700
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.3k
Designing for Performance
lara
610
70k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
250
Are puppies a ranking factor?
jonoalderson
1
2.7k
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