Files
animethemes-server/app/GraphQL/Definition/Fields/Auth/Role/RoleGuardNameField.php
T

33 lines
626 B
PHP

<?php
declare(strict_types=1);
namespace App\GraphQL\Definition\Fields\Auth\Role;
use App\GraphQL\Definition\Fields\StringField;
use App\Models\Auth\Role;
/**
* Class RoleGuardNameField.
*/
class RoleGuardNameField extends StringField
{
/**
* Create a new field instance.
*/
public function __construct()
{
parent::__construct(Role::ATTRIBUTE_GUARD_NAME, 'guardName', nullable: false);
}
/**
* The description of the field.
*
* @return string
*/
public function description(): string
{
return 'The authentication guard of the resource';
}
}