Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Eloquent Json Relations Laravel Package

staudenmeir/eloquent-json-relations

Adds JSON foreign key support to Laravel Eloquent relationships (belongsTo, hasMany, morph*, through). Also enables many-to-many and has-many-through relations using JSON arrays (IDs or objects) across MySQL, Postgres, SQLite, SQL Server.

View on GitHub
Deep Wiki
Context7
v1.13

What's Changed

  • Add HasOneJson relation (#113)

Full Changelog: https://github.com/staudenmeir/eloquent-json-relations/compare/v1.12...v1.13

v1.10.2

What's Changed

  • Add HasOneJson relation (#113)

Full Changelog: https://github.com/staudenmeir/eloquent-json-relations/compare/v1.10.1...v1.10.2

v1.11

What's Changed

  • Support Laravel 11

Full Changelog: https://github.com/staudenmeir/eloquent-json-relations/compare/v1.10...v1.11

v1.10

What's Changed

  • Extend support for many-to-many relationships on SQLite (#108)

Full Changelog: https://github.com/staudenmeir/eloquent-json-relations/compare/v1.9.1...v1.10

v1.9.1

What's Changed

  • Improve IDE helper model hook

Full Changelog: https://github.com/staudenmeir/eloquent-json-relations/compare/v1.9...v1.9.1

v1.9

What's Changed

  • Add IDE helper model hook

Full Changelog: https://github.com/staudenmeir/eloquent-json-relations/compare/v1.8.3...v1.9

v1.7.3

What's Changed

  • Temporarily fix issues with artisan model:show (#105)

Full Changelog: https://github.com/staudenmeir/eloquent-json-relations/compare/v1.7.2...v1.7.3

v1.8.2
  • Support HasOneDeep relationships from third-party packages
v1.7.2
  • Support HasOneDeep relationships from third-party packages
v1.8.1
  • Improve performance on MySQL 8 with "MEMBER OF()" (#94)
v1.8
  • Support Laravel 10
v1.7.1
  • Add support for Arrayable object columns by @27pchrisl (#86)
v1.7
v1.6.3
  • Add method for Laravel Nova
v1.6.2
  • Fix eager loading with default model attributes (#83)
v1.6.1
  • Fix deprecation notice in PHP 8.1 (#75)
v1.6
  • Support Laravel 9
v1.5.4
  • Support AsCollection and AsArrayObject casts (#57)
v1.5.3
  • Fix morphTo() not extracting JSON attribute values (#52)
v1.5.2
  • Support big integer keys on PostgreSQL
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle