PHPackages                             uni-deal/filament-relationship-builder - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. uni-deal/filament-relationship-builder

ActiveLibrary[Admin Panels](/categories/admin)

uni-deal/filament-relationship-builder
======================================

Registers a FilamentPHP builder via an Eloquent relationship with order, type, and data columns.

v1.0(1y ago)210MITPHP

Since Mar 16Pushed 1y ago3 watchersCompare

[ Source](https://github.com/uni-deal/filament-relationship-builder)[ Packagist](https://packagist.org/packages/uni-deal/filament-relationship-builder)[ RSS](/packages/uni-deal-filament-relationship-builder/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Filament Relationship Builder
=============================

[](#filament-relationship-builder)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1076f3d5a776d41e9f216cbc8e64532479363bd33be256a30726de81d902783a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f756e692d6465616c2f66696c616d656e742d72656c6174696f6e736869702d6275696c6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/uni-deal/filament-relationship-builder)[![Total Downloads](https://camo.githubusercontent.com/7efde6f28f762fd35c52cca1e3779dc9286de5f237a6f808f44a124d76f9b65d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f756e692d6465616c2f66696c616d656e742d72656c6174696f6e736869702d6275696c6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/uni-deal/filament-relationship-builder)

A simple package to register a FilamentPHP builder via an Eloquent relationship with columns: `order`, `type`, and `data`.

Installation
------------

[](#installation)

To install this package, you can use Composer directly from the GitHub repository.

Run the following command in your terminal:

```
composer require uni-deal/filament-relationship-builder
```

Once installed, you can start using the `RelationshipBuilder` component as shown in the example above.

Example Usage
-------------

[](#example-usage)

```
use UniDeal\FilamentRelationshipBuilder\Components\RelationshipBuilder;

RelationshipBuilder::make('blocks')
    ->relationship()
    ->blocks([
        Forms\Components\Builder\Block::make('Heading')->schema([
            Forms\Components\TextInput::make('content')
        ])
    ]),
```

Model Requirements
------------------

[](#model-requirements)

The targeted model must contain a cast on the `data` column of type array:

```
class Block extends \Illuminate\Database\Eloquent\Model {
    // Before Laravel 11
    protected $casts = [
        'data' => 'array',
    ];

    // For Laravel 11+
    protected function casts(): array {
        return [
            'data' => 'array',
        ];
    }
}
```

Register the `blocks` relation on the initial model:

```
class Post extends \Illuminate\Database\Eloquent\Model {
    public function blocks() {
        return $this->hasMany(Block::class);
    }
}
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance42

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

474d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0cd49a0eefd2292fabb9cf776fba3c78ea32d7902fa4193e758ad539dfd1b1e?d=identicon)[alancolant](/maintainers/alancolant)

---

Top Contributors

[![alancolant](https://avatars.githubusercontent.com/u/19172637?v=4)](https://github.com/alancolant "alancolant (2 commits)")

---

Tags

filamentphplaravellaravelbuilderfilament

### Embed Badge

![Health badge](/badges/uni-deal-filament-relationship-builder/health.svg)

```
[![Health](https://phpackages.com/badges/uni-deal-filament-relationship-builder/health.svg)](https://phpackages.com/packages/uni-deal-filament-relationship-builder)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[studio/laravel-totem

A Laravel package to manage your cron jobs through a beautiful dashboard

1.8k1.2M](/packages/studio-laravel-totem)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[filament/filament

A collection of full-stack components for accelerated Laravel app development.

3829.6M3.6k](/packages/filament-filament)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)[eliseekn/laravel-metrics

Generate easily metrics and trends data of your models for your dashboards.

1347.7k](/packages/eliseekn-laravel-metrics)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
