misaf/vendra-attribute-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

misaf/vendra-attribute-api

Composer 安装命令:

composer require misaf/vendra-attribute-api

包简介

API services for the vendra-attribute module

README 文档

README

JSON:API services for the misaf/vendra-attribute domain module. Exposes attribute values through a Laravel JSON:API interface.

Features

  • Read-only JSON:API resource for AttributeValue models
  • Polymorphic attribute values exposed through a consistent API
  • Tenant-agnostic — works with or without a tenant provider
  • Conditionally integrated into misaf/vendra-product-api when both packages are installed (attribute values appear on product endpoints automatically)

Requirements

  • PHP 8.3+
  • Laravel 13
  • misaf/vendra-attribute
  • misaf/vendra-api

Installation

composer require misaf/vendra-attribute-api

The service provider is auto-registered. The JSON:API server registers at /v1.

Resources

attribute-values — read-only

Field Type Notes
id ID
attribute_id Number
value Str
position Number Read-only
created_at Carbon Read-only
updated_at Carbon Read-only

Filters: id, exclude (by ID).

Cross-module Integration

When misaf/vendra-product-api detects this package, it conditionally registers attributeValues as a relationship on the products resource and serves AttributeValueSchema under the vendra-product server. No configuration required.

API Routes

  • GET /v1/attribute-values — list attribute values
  • GET /v1/attribute-values/{id} — show a single attribute value

Tenant Awareness

Tenancy is inherited from misaf/vendra-attribute domain models, which derive tenant behavior from misaf/vendra-support. The API module stays tenant-agnostic and never references a concrete tenant provider.

Testing and Analysis

composer test
composer analyse

License

MIT.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固