- ScopeTest::withoutGlobalScope(StatusScope::class)->get(); //移除指定作用域
- ScopeTest::withoutGlobalScope('status')->get(); //移除闭包定义的作用域
- ScopeTest::withoutGlobalScopes()->get(); //移除所有作用域
- ScopeTest::withoutGlobalScopes([oneScope::class, twoScope::class])->get(); //移除某些作用域
复制代码
|