下面由laravel教程栏目给大家介绍快速安装laravel框架的IDE提示工具,希望对需要的朋友有所帮助!
快速安装laravel框架的IDE提示工具
composer require –dev barryvdh/laravel-ide-helper
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class
public function register(){if ($this->app->environment() !== 'production') { $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);}}
"scripts":{"post-update-cmd": [ "Illuminate\Foundation\ComposerScripts::postUpdate", "@php artisan ide-helper:generate", "@php artisan ide-helper:meta"]},
php artisan vendor:publish –provider="Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider" –tag=config
php artisan ide-helper:generate
以上是怎么快速安装laravel框架的IDE提示工具的详细内容。更多信息请关注PHP中文网其他相关文章!