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
takamichi
February 26, 2016
Programming
300
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
Transcript
12 slides
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
Other Decks in Programming
See All in Programming
Growing PicoRuby's Ecosystem on ESP32
yuuu
2
120
Apple Intelligenceとオンデバイス時代の到来
yahir0
0
240
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
310
우리의 Nitro Modules는 당신의 Turbo Modules보다 아름답다
l2hyunwoo
0
260
まずはコードより業務と向き合う:テーブル解体のためにPdMを呼んだ話
sakawe_ee
0
220
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
300
Getting Started with Vibe Coding
miccheng
0
220
止まらない比較を止める — 余帰納法で無限ストリームを比べる
tarao
0
100
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
130
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
330
高橋メソッドでCVE解説シリーズ 〜CVE-2026-112816〜
hakkadaikon
0
250
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
3
1.7k
Featured
See All Featured
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.7k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.6k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Site-Speed That Sticks
csswizardry
13
1.6k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
380
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
480
ラッコキーワード サービス紹介資料
rakko
5
5.8M
We Are The Robots
honzajavorek
0
440
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
BBQ
matthewcrist
90
10k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
7.1k