+ public static function getSystemRole(string $systemName): ?self
+ {
+ return static::query()->where('system_name', '=', $systemName)->first();
+ }
+
+ /**
+ * Get all visible roles.
+ */
+ public static function visible(): Collection
+ {
+ return static::query()->where('hidden', '=', false)->orderBy('name')->get();
+ }
+
+ /**
+ * Get the roles that can be restricted.
+ */
+ public static function restrictable(): Collection