public withoutGlobalScopes ( array $scopes = null ) | ||
$scopes | array |
public function withoutGlobalScopes(array $scopes = null)
{
if (is_array($scopes)) {
foreach ($scopes as $scope) {
$this->withoutGlobalScope($scope);
}
} else {
$this->scopes = [];
}
return $this;
}
/** * Remove all or passed registered global scopes. * * @param array|null $scopes * @return $this * @static */ public static function withoutGlobalScopes($scopes = null) { return \Illuminate\Database\Eloquent\Builder::withoutGlobalScopes($scopes); }