for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of laravel.su package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace App\GraphQL\Types;
use GraphQL\Type\Definition\Type;
* Class AuthUserType
* @package App\GraphQL\Types
class AuthUserType extends UserType
{
* @var array
protected $attributes = [
'name' => 'Auth',
'description' => 'Authenticated user',
];
* @return array
public function fields(): array
return array_merge(parent::fields(), [
'token' => [
'type' => Type::string(),
'description' => 'Authenticated user token',
],
]);
}