UseScopes
trait UseScopes
Properties
protected Collection | $scopes | 全局范围 |
Methods
mixed
scope(string $key, string $label)
添加全局范围, 在添加全局范围之后, 如果不传入 Scope, 则默认为第一个 Scope
Collection
getScopes()
Get all filter scopes.
Scope|null
getCurrentScope()
获取当前的Scope, 未设定返回首个
Details
at line 26
mixed
scope(string $key, string $label)
添加全局范围, 在添加全局范围之后, 如果不传入 Scope, 则默认为第一个 Scope
at line 38
Collection
getScopes()
Get all filter scopes.
at line 47
Scope|null
getCurrentScope()
获取当前的Scope, 未设定返回首个