laravel-ide-helper 用于实现方便的代码提示功能,详细查看插件官网
使用composer安装插件
composer require --dev barryvdh/laravel-ide-helper
Add the following class to the providers array in config/app.php:
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
If you want to manually load it only in non-production environments, instead you can add this to your AppServiceProvider with the register() method:
public function register()
{
if ($this->app->environment() !== 'production') {
$this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
}
// ...
}
生成代码跟踪支持
php artisan ide-helper:generate
artisan
path to php 别错了!!!