下面由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
Atas ialah kandungan terperinci 怎么快速安装laravel框架的IDE提示工具. Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!