NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
# 安装 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)