周小云 的个人博客 / 3 / 20 / 创建于 3年前
不是 laravel 安装 ide-heper 可以使用 model 的模型注释吗 用的 webman 但是模型选择了跟 laravel 一样的模型
本作品采用《CC 协议》,转载必须注明作者和本文链接
没使用过 webman,但 ORM 方法不一致的话应该是不行的,webman 没有类似的工具可以选择吗?
你在空的 laravel 中生成这个 model 的注释 复制进 webman 就行了
没用过 webman,不过 ide-helper 其实就是一个 provider 和一个 generate 暴露出去,通过替换模版文件内容达到生成辅助文件的目的,fork 一个出来改吧
PHPStorm 有个插件,叫 Laravel-Idea,不知道对你有没有用。
PHPStorm
Laravel-Idea
看看 php artisan ide-helper:model 的实现方式,搬到 webman 里面试试。
php artisan ide-helper:model
有现成的一个插件 kriss/webman-eloquent-ide-helper
kriss/webman-eloquent-ide-helper
@周小云 为什么我执行“php webman ide-helper:models”,会出现“Could not open input file: webman”这个问题,我也是按webman官方文档搭建的项目,怎么没有webman命令?求解
我要举报该,理由是:
推荐文章: