1.安装composer包
composer require barryvdh/laravel-ide-helper dev-master
2.目录:\config\app.php
的'providers' => []最后一行添加:
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
3.执行php
php artisan ide-helper:generate
参考文章:https://packagist.org/packages/barryvdh/laravel-ide-helper