laragrad/eloquent-model-pg-array-relations

v1.2.2 2023-12-06 16:06 UTC

This package is auto-updated.

Last update: 2024-09-06 17:45:53 UTC


README

本包提供了一个特质 \Laragrad\Models\Concerns\HasPgArrayRelations,允许在 PostgreSQL 数据库中使用两种特定的关系。

  • hasManyInArray - 当前模型的数组字段有多个相关模型的键。
  • belongsToManyArray - 当前模型的关键字包含在多个相关模型的数组字段中。

安装

在控制台运行命令

composer require laragrad/eloquent-model-pg-array-relations