Github https://github.com/barryvdh/laravel-ide-helper
进入项目根目录执行
composer require barryvdh/laravel-ide-helper
然后在config/app.php的providers中添加
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
接着运行生成命令
php artisan clear-compiled
php artisan ide-helper:generate
php artisan optimize
实现代码提示、跟踪和自动补全。