Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

Code Block
languagebash
$ composer require barryvdh/laravel-debugbar --dev


auto discovery 가 되지만 개인적으로는 선호하지 않으므로config/app.php 의 Provider 에 다음 클래스를 등록합니다. 

Code Block
Barryvdh\Debugbar\ServiceProvider::class,

...

Code Block
languagebash
$ composer require --dev  barryvdh/laravel-ide-helper


설치후에 AppServiceProvider.php 에 ide-helper 등록

Code Block
languagephp
public function register()
{
   if ($this->app->isLocal()) {
       $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
   }
}  

...

model 을 추가/변경하거나 새로운 외부 패키지를 끌어와서 사용하는등 변경이 생기면 다음 명령어를 실행해주면 됩니다.

Code Block
languagebash
$ php artisan ide-helper:generate
$ php artisan ide-helper:meta
$ php artisan ide-helper:models -N

...

  • _ide_helper.php
  • _ide_helper_models.php
  • .phpstorm.meta.php
Code Block
languagebash
echo _ide_helper.php >> .gitignore
echo _ide_helper_models.php >> .gitignore
echo .phpstorm.meta.php >> .gitignore


Laravel dump-server

...