Files
animethemes-server/app/Http/Api/Field/Auth/Role/RoleDefaultField.php
T
paranarimasu 4dfd46be9a feat(api): adding roles and permissions relations to my schema (#554)
* feat(api): adding roles and permissions relations to my schema

* style: fix StyleCI findings
2023-03-13 17:13:28 -05:00

26 lines
466 B
PHP

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