trait
Illuminate
/
Database
/
Eloquent
/
Concerns
/
HasGlobalScopes
You are viewing an older version of the documentation. For the latest, please visit master documentation.
HasGlobalScopes
Methods
public
static
addGlobalScope ( $scope , Closure $implementation ) : mixed
Register a new global scope on the model.
Parameters
public
static
hasGlobalScope ( $scope ) : bool
Determine if a model has a global scope.
Parameters
- $scope Scope |string
public
static
getGlobalScope ( $scope ) : Scope |Closure |null
Get a global scope registered with the model.
Parameters
- $scope Scope |string
public
getGlobalScopes ( ) : array
Get the global scopes for this class instance.