Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 569 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 569 Bytes

hyperf 单表多租户版本

使用方法: 在hyperf的orm中直接use TenantField;即可。 需配置的地方::

图片

图中getTenantIdVal方法是用来获取全局默认租户id的。如果你默认不希望全局添加租户条件。可以返回null即可。然后通过orm::tenant来使用即可。 图片