filipac / oc-idehelper-plugin
OctoberCMS 插件,通过提供 IDE 辅助工具简化开发
1.3
2021-03-16 17:11 UTC
Requires
- barryvdh/laravel-ide-helper: ^2.8
- composer/installers: ~1.0
- illuminate/support: ~5.5.40|~6.0
README
此插件为 October 添加了 barryvdh/ide-helpers 包以提供更好的 IDE 支持。还扩展了 models 命令以在辅助文件/文档块中添加魔法。目前它看起来像 ExtendableTrait 的方法、属性(由插件添加或由您扩展)以及您在模型中定义的每个关系,或者使用 OC Extendable 定义的每个关系。
安装
composer require filipac/oc-idehelper-plugin或git clone到 /plugins/filipac/idehelperphp artisan ide-helper:generate --helpers --no-interactionphp artisan ide-helper:models --nowrite --reset --no-interaction
配置
不需要配置,但为了使用 php artisan ide-helper:models,您可能需要编辑 /config/config.php 以包含要扫描的模型文件。您还可以将配置文件复制到 config/filipac/idehelper 以避免更新时覆盖。
待办事项
- 更新后自动清除编译/生成/优化