Files
animethemes-server/app/GraphQL/Schema/Fields/Auth/Role/RoleGuardNameField.php
T
2025-09-03 04:57:13 -03:00

22 lines
447 B
PHP

<?php
declare(strict_types=1);
namespace App\GraphQL\Schema\Fields\Auth\Role;
use App\GraphQL\Schema\Fields\StringField;
use App\Models\Auth\Role;
class RoleGuardNameField extends StringField
{
public function __construct()
{
parent::__construct(Role::ATTRIBUTE_GUARD_NAME, 'guardName', nullable: false);
}
public function description(): string
{
return 'The authentication guard of the resource';
}
}