We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2f35fa commit f8dd01aCopy full SHA for f8dd01a
src/Illuminate/Database/Eloquent/Concerns/HasGlobalScopes.php
@@ -59,6 +59,27 @@ public static function getGlobalScope($scope)
59
);
60
}
61
62
+ /**
63
+ * Get all of the global scopes that are currently registered.
64
+ *
65
+ * @return array
66
+ */
67
+ public static function getAllGlobalScopes()
68
+ {
69
+ return static::$globalScopes;
70
+ }
71
+
72
73
+ * Set the current global scopes.
74
75
+ * @params array $scopes
76
+ * @return void
77
78
+ public static function setAllGlobalScopes($scopes)
79
80
+ static::$globalScopes = $scopes;
81
82
83
/**
84
* Get the global scopes for this class instance.
85
*
0 commit comments