本文共 893 字,大约阅读时间需要 2 分钟。
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
转载地址:http://oawh.baihongyu.com/