New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

tv2regionerne/statamic-reverse-relationship

5,015 3

Larablocks Analysis

tv2regionerne/statamic-reverse-relationship works with any PHP project: the latest release (v1.6.1, May 16, 2024) doesn't depend on Laravel.

Recommendation checks

Use with care

Use with care: meets 0 of 3 checks.

  • No release in the last 12 months (last: May 16, 2024)
  • 620 downloads a month (needs 10,000)
  • 3 GitHub stars (needs 100)

State

Quiet
  • Last stable release: May 16, 2024.
  • No releases in the last 12 months.
  • First released: Nov 13, 2023.
  • Monthly downloads: 620.
  • 1 open issue on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.

Install
composer require tv2regionerne/statamic-reverse-relationship
Latest Version:v1.6.1
Last Updated:Feb 11, 2026
Links: GitHub  ·  Packagist
Maintainer: cboxdk

Reverse Relationship Addon for Statamic

Overview

Reverse Relationship is an innovative Statamic addon that simplifies the management of one-to-many and many-to-one relationships in your Statamic projects.

This package eliminates the need to create and sync a relationship column in both collections, ensuring a more streamlined and efficient workflow.

Key Features

  • Effortless Relationship Management: Easily set up one-to-many and many-to-one relationships without the need for duplicating relationship columns in both collections.
  • Antlers Template Support: Utilize the field in Antlers templates to fetch related entries with minimal effort.
  • Configurable Fieldtype: Customizable settings for selecting related collections or taxonomies, defining the relationship field, and sorting the displayed entries.
  • Automated Data Synchronization: Keeps your relationship data consistent and synchronized automatically.

Installation

  1. Install the addon via Composer:
composer require tv2regionerne/statamic-reverse-relationship

Configuration and Usage

Setting up Relationships

One-to-Many Relationship:

  • In the 'many' side collection's blueprint (e.g., Episodes), create an 'Entries' fieldtype (e.g., series) with a maximum of one entry, pointing to the 'one' side collection (e.g., Series).

Many-to-One Relationship:

  • In the 'one' side collection's blueprint (e.g., Series), add the Reverse Relationship fieldtype with a configuration pointing to the 'many' side collection (e.g., Episodes) and the specific relationship field (e.g., series).

Example: Series and Episodes

Episodes Collection Blueprint:
Add an 'Entries' fieldtype named 'series', limited to 1 entry, linked to the Series collection.

Series Collection Blueprint:
Add a Reverse Relationship fieldtype named 'Episodes', configured to the Episodes collection and the 'series' field.

In Templates

Fetch related entries in Antlers templates using the Reverse Relationship field:

{{  collection:series }}
    {{  title }}<br>
    <ul>
        {{ episodes scope="episode" }}
            <li>{{ episode:title }}</li>
        {{ /episodes }}
    </ul>
{{  /collection:series }}

Limitations

The addon does not support many-to-many relationships.
Correct setup of relationship fields in collections or taxonomies is crucial for proper functionality.

Support

For queries, issues, or requests, visit our GitHub issues page.
https://github.com/tv2regionerne/statamic-reverse-relationship/issues

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released License
v1.6.1
v1.6.0
v1.5.0
v1.4.0
v1.3.0