Files
animethemes-server/app/Http/Api/Field/Auth/User/UserNameField.php
T
paranarimasuandGitHub 128b90dae2 refactor(api): provide query to field to determine selection and aggregation (#512)
* refactor(api): provide query to field to determine selection and aggregation

* style: fix StyleCI findings
2023-02-01 23:31:55 -06:00

26 lines
455 B
PHP

<?php
declare(strict_types=1);
namespace App\Http\Api\Field\Auth\User;
use App\Http\Api\Field\StringField;
use App\Http\Api\Schema\Schema;
use App\Models\Auth\User;
/**
* Class UserNameField.
*/
class UserNameField extends StringField
{
/**
* Create a new field instance.
*
* @param Schema $schema
*/
public function __construct(Schema $schema)
{
parent::__construct($schema, User::ATTRIBUTE_NAME);
}
}