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 1mo ago

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 43% of packages

Maintenance45

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity37

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

423d 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

[watheqalshowaiter/filament-sticky-table-header

A Filament plugin that makes table headers stick when scrolling down for better UX.

3020.4k](/packages/watheqalshowaiter-filament-sticky-table-header)[redberry/page-builder-plugin

Page builder plugin for filamentphp admin panel to build pages using blocks.

242.8k](/packages/redberry-page-builder-plugin)[ibrahim-bedir/filament-dynamic-settings-page

272.0k1](/packages/ibrahim-bedir-filament-dynamic-settings-page)[alareqi/filament-pwa

A comprehensive PWA (Progressive Web App) plugin for Filament v3 and v4 admin panels with offline functionality, installation prompts, and icon generation.

132.9k](/packages/alareqi-filament-pwa)[jeffersongoncalves/filament-topbar

A simple yet effective Filament plugin that automatically adds a customized topbar to your Filament admin panel. This plugin enhances your Filament panel's user experience by replacing the default topbar component with an improved version that displays navigation and user interface elements in strategic locations.

171.2k](/packages/jeffersongoncalves-filament-topbar)[a2insights/filament-saas

Filament Saas for A2Insights

161.1k](/packages/a2insights-filament-saas)

PHPackages © 2026

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