帮我看看这些Commands如何命名更好

php artisan schedule:list


sync:classrroms-edusoho | 同步班级
popup:abc-expired | ABC过期弹窗
transfer:customers | 流转不需要数据
statistics:order | 刷新订单统计
statistics:customer | 刷新意向数据
reset:adminlist | 重置分配规则的缓存
popup-talkingtime:morning | 通时弹窗(早上)
popup-talkingtime:afternoon | 通时弹窗(下午)
talkingtime:daily | 刷新通时统计
transfer:abc-exipred | 流转过期ABC
popup:perf-daily | 日常业绩弹窗
popup:perf-today | 出单弹窗
popup:fresh-customers | 首咨弹窗
statistics:call | 刷新回拨通时统计
customer:renewed | 续班状态
popup:expired-backendcustomers | 后端过期回访客户弹窗

通时弹窗分两个命令是因为命令绑定了消息模板,所以用了两个。

有没个标准去命令呢? 我每次是凭感觉去命名,然后放到chatgpt里面去优化。

讨论数量: 1

之前写过一篇介绍 artisan 的文章 《Laravel 实用小技巧 —— Artisan 入门(下)》,可以看看对你有没有帮助。

如果仅是感觉组织命令的命名空间比较费劲的话,可以考虑使用一个命名空间入口,然后对脚本在内部进行分发。

希望可以帮到你~

10个月前 评论

之前写过一篇介绍 artisan 的文章 《Laravel 实用小技巧 —— Artisan 入门(下)》,可以看看对你有没有帮助。

如果仅是感觉组织命令的命名空间比较费劲的话,可以考虑使用一个命名空间入口,然后对脚本在内部进行分发。

希望可以帮到你~

10个月前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!