#使用下列指令將此套件與composer一起使用:composer require –dev barryvdh/laravel-ide-helper
更新composer後,將服務提供者新增至config/app.phpBarryvdh\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中文網其他相關文章!