企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 安装 http://laravelacademy.org/post/4202.html 1). 使用 Composer 安装该扩展包: ~~~ composer require barryvdh/laravel-ide-helper ~~~ 2). 安装完成后,在config/app.php添加以下内容到 providers 数组。 ~~~ Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class, ~~~ 3). 接下来运行以下命令生成代码对应文档: ~~~ php artisan ide-helper:generate ~~~ 由于使用此扩展包会生成相应的代码结构文件, 这些文件可能只有当前的开发者的 IDE 需要, 因此需要添加对应配置到.gitignore文件中: ~~~ .idea _ide_helper.php _ide_helper_models.php .phpstorm.meta.php ~~~ - [laravel-ide-helper github地址](https://github.com/barryvdh/laravel-ide-helper) - Sublime 需要安装[CodeIntel 插件](https://github.com/SublimeCodeIntel/SublimeCodeIntel)