withIntermediatePaths([ new AllowedInclude(new PermissionSchema(), Role::RELATION_PERMISSIONS), ]); } /** * @return Field[] * * @noinspection PhpMissingParentCallCommonInspection */ public function fields(): array { return [ new CreatedAtField($this), new UpdatedAtField($this), new IdField($this, Role::ATTRIBUTE_ID), new RoleNameField($this), new RoleGuardNameField($this), new RoleDefaultField($this), new RoleColorField($this), new RolePriorityField($this), ]; } }