HasGlobalScopes
trait HasGlobalScopes (View source)
Methods
static void
bootHasGlobalScopes()
Boot the has global scopes trait for a model.
static array
resolveGlobalScopeAttributes()
Resolve the global scope class names from the attributes.
static mixed
addGlobalScope($scope, $implementation = null)
Register a new global scope on the model.
static void
addGlobalScopes(array $scopes)
Register multiple global scopes on the model.
static bool
static
static array
getAllGlobalScopes()
Get all of the global scopes that are currently registered.
static void
setAllGlobalScopes(array $scopes)
Set the current global scopes.
array
getGlobalScopes()
Get the global scopes for this class instance.