Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
PhpStormでLaravelでの開発を楽に
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
takamichi
February 26, 2016
Programming
290
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
PhpStormでLaravelでの開発を楽に
2/26(金) Laravel もくもく会 in 大阪 #1 LT発表分
https://gist.github.com/takamichi/72e7707169ed9b90a5dd
takamichi
February 26, 2016
Other Decks in Programming
See All in Programming
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
180
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
2
550
ActionController meets Protocol Buffers
sorah
0
520
月間100万人のサービス刷新で、 技術選定をHonoに振り切った話
yutobara
8
6.6k
Verilogで学ぶCPU自作入門
uyuki234
8
4.1k
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
220
Railsバージョンを4倍にした話
optim
0
350
APNsからLive Activityを開始する話
yumnumm
0
170
見えないものを探る要求要件定義に必要な基本的思考 / invisible-requirement-thinking
minodriven
15
8.5k
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
180
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
640
Featured
See All Featured
Test your architecture with Archunit
thirion
2
2.4k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
67k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.2k
Bash Introduction
62gerente
615
220k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
530
The Limits of Empathy - UXLibs8
cassininazir
2
720
The Language of Interfaces
destraynor
162
27k
Raft: Consensus for Rubyists
vanstee
142
7.8k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
30 Presentation Tips
portentint
PRO
1
430
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