\Framework\Basic\ScopesTpTenantScope

Summary

Methods
Properties
Constants
apply()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

apply()

apply(\think\db\Query  $query, \think\Model  $model) : mixed

对查询应用全局作用域 适用于: select, update, delete (通过模型调用时)

Parameters

\think\db\Query $query
\think\Model $model

Returns

mixed —