- * 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
- {
- return static::query()->where('system_name', '!=', 'admin')->get();
- }
-
- /**
- * @inheritdoc