Add neutral diagnostic framework for future reporting modules: - DiagnosticReporterInterface, Registry, Manager, PayloadSanitizer - Laravel exception hook in bootstrap/app.php - Module permission declarations (requires_permissions in module.json) - Core diagnostic report points (module boot/install/update failures) - Module documentation update (moduldoku.md) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
348 B
PHP
18 lines
348 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
enum UserRole: string
|
|
{
|
|
case Admin = 'admin';
|
|
case Driver = 'driver';
|
|
|
|
/**
|
|
* Return the human-readable label for this role.
|
|
* Uses the lang/de/admin.php (or current locale equivalent) keys.
|
|
*/
|
|
public function label(): string
|
|
{
|
|
return __('admin.role_' . $this->value);
|
|
}
|
|
}
|