27 lines
571 B
PHP
27 lines
571 B
PHP
<?php
|
|
|
|
namespace App\Support\Auth;
|
|
|
|
/**
|
|
* Platform Capability Registry
|
|
*
|
|
* These capabilities are used for platform operators authenticated via the
|
|
* `platform` guard (System panel).
|
|
*/
|
|
class PlatformCapabilities
|
|
{
|
|
public const ACCESS_SYSTEM_PANEL = 'platform.access_system_panel';
|
|
|
|
public const USE_BREAK_GLASS = 'platform.use_break_glass';
|
|
|
|
/**
|
|
* @return array<string>
|
|
*/
|
|
public static function all(): array
|
|
{
|
|
$reflection = new \ReflectionClass(self::class);
|
|
|
|
return array_values($reflection->getConstants());
|
|
}
|
|
}
|