首页 >> 文档中心 >> 产品教程
将操作封装为命令对象,通过总线分发处理。
$bus->dispatch(new CreateArticleCommand($data));
统一入口、便于审计、支持事务和回滚。
扫码关注我们