PHPackages                             guava/filament-modal-relation-managers - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. guava/filament-modal-relation-managers

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

guava/filament-modal-relation-managers
======================================

Allows you to embed relation managers inside filament modals.

3.1.0(3mo ago)7981.8k↓26.9%18[2 issues](https://github.com/GuavaCZ/filament-modal-relation-managers/issues)[2 PRs](https://github.com/GuavaCZ/filament-modal-relation-managers/pulls)4MITPHPPHP ^8.1CI passing

Since Nov 8Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/GuavaCZ/filament-modal-relation-managers)[ Packagist](https://packagist.org/packages/guava/filament-modal-relation-managers)[ Docs](https://github.com/guavaCZ/filament-modal-relation-managers)[ GitHub Sponsors](https://github.com/GuavaCZ)[ RSS](/packages/guava-filament-modal-relation-managers/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (26)Versions (17)Used By (4)

[![filament-modal-relation-managers Banner](https://github.com/GuavaCZ/filament-modal-relation-managers/raw/main/docs/images/banner.jpg)](https://github.com/GuavaCZ/filament-modal-relation-managers/raw/main/docs/images/banner.jpg)

Allows you to embed relation managers inside filament modals.
=============================================================

[](#allows-you-to-embed-relation-managers-inside-filament-modals)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e70fa3e048db1774a7ced9b35269d9b4af3b13bf89cad83fcd9749ad1b8c4a4c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67756176612f66696c616d656e742d6d6f64616c2d72656c6174696f6e2d6d616e61676572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/guava/filament-modal-relation-managers)[![GitHub Tests Action Status](https://camo.githubusercontent.com/da8ba6763a2439ea1f2193cb137e08963c83b65a3cee72df2ce228d8d3af3da1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6775617661435a2f66696c616d656e742d6d6f64616c2d72656c6174696f6e2d6d616e61676572732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/guavaCZ/filament-modal-relation-managers/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/c6d80597c7fb5d1215e3ea18ba1307af2cb8b0e2158d15d1b0f75563c9d9ba6b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6775617661435a2f66696c616d656e742d6d6f64616c2d72656c6174696f6e2d6d616e61676572732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/guavaCZ/filament-modal-relation-managers/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/08767aa93825e5f350a4d900d86282a03bb409e3bf34523beda582a797767462/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67756176612f66696c616d656e742d6d6f64616c2d72656c6174696f6e2d6d616e61676572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/guava/filament-modal-relation-managers)

This package allows you to embed any of your relation managers inside modals using a provided filament action.

Version compatibility
---------------------

[](#version-compatibility)

Filament versionPlugin version3.x1.x4.x2.x5.x3.xShowcase
--------

[](#showcase)

    demo\_preview.mov    [![Screenshot 1](https://github.com/GuavaCZ/filament-modal-relation-managers/raw/main/docs/images/screenshot_01.png)](https://github.com/GuavaCZ/filament-modal-relation-managers/raw/main/docs/images/screenshot_01.png)[![Screenshot 2](https://github.com/GuavaCZ/filament-modal-relation-managers/raw/main/docs/images/screenshot_02.png)](https://github.com/GuavaCZ/filament-modal-relation-managers/raw/main/docs/images/screenshot_02.png)[![Screenshot 3](https://github.com/GuavaCZ/filament-modal-relation-managers/raw/main/docs/images/screenshot_03.png)](https://github.com/GuavaCZ/filament-modal-relation-managers/raw/main/docs/images/screenshot_03.png)

Support us
----------

[](#support-us)

Your support is key to the continual advancement of our plugin. We appreciate every user who has contributed to our journey so far.

While our plugin is available for all to use, if you are utilizing it for commercial purposes and believe it adds significant value to your business, we kindly ask you to consider supporting us through GitHub Sponsors. This sponsorship will assist us in continuous development and maintenance to keep our plugin robust and up-to-date. Any amount you contribute will greatly help towards reaching our goals. Join us in making this plugin even better and driving further innovation.

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

[](#installation)

You can install the package via composer:

```
composer require guava/filament-modal-relation-managers
```

Assets
------

[](#assets)

Make sure you have a custom filament theme installed (more info in the official documentation [here](https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme)) and add the following to your `theme.css` file property, so that our CSS overrides are correctly built:

```
@source '../../../../vendor/guava/filament-modal-relation-managers/resources/**/*';
```

Usage
-----

[](#usage)

You can use the `RelationManagerAction` anywhere you like to open the relation manager as a modal:

```
use Guava\FilamentModalRelationManagers\Actions\RelationManagerAction;

// for example in a filament table
return $table
    ->actions([
        RelationManagerAction::make('lesson-relation-manager')
            ->label('View lessons')
            ->relationManager(LessonRelationManager::make()),
    ])
;
```

```
use Guava\FilamentModalRelationManagers\Actions\RelationManagerAction;
// for example in a filament schema (form / infolist)

return $schema
    ->components([
        TextEntry::make('title')
            ->suffixAction(RelationManagerAction::make()
                ->label('View lessons')
                ->relationManager(LessonRelationManager::make()))
    ])
;
```

```
use Guava\FilamentModalRelationManagers\Actions\RelationManagerAction;

// for example in filament page

class EditCourse extends EditRecord {

    // ...

    protected function getHeaderActions(): array
    {
        return [
            RelationManagerAction::make()
                ->label('View lessons')
                ->record($this->getRecord())
                ->relationManager(LessonRelationManager::make())
        ];
    }

    // ...
}
```

Customization
-------------

[](#customization)

We have a compact style which has no padding around the table, so it touches the edge of the modal.

To enable it:

```
use Guava\FilamentModalRelationManagers\Actions\RelationManagerAction;

RelationManagerAction::make()
    ->compact();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Lukas Frey](https://github.com/GuavaCZ)
- [All Contributors](../../contributors)
- Spatie - Our package skeleton is a modified version of [Spatie's Package Skeleton](https://github.com/spatie/package-skeleton-laravel)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance83

Actively maintained with recent releases

Popularity47

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 59.3% 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

Every ~41 days

Recently: every ~70 days

Total

13

Last Release

106d ago

Major Versions

1.4.0-beta.1 → 2.0.0-beta.12025-06-12

2.0.0 → 3.0.02026-01-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/42d872f5f47cd71cfd46c8fbd6ec77a6bfb46d6d9499b5e1f843eb407c07f737?d=identicon)[Skrypt](/maintainers/Skrypt)

---

Top Contributors

[![lukas-frey](https://avatars.githubusercontent.com/u/10926334?v=4)](https://github.com/lukas-frey "lukas-frey (32 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")[![gpibarra](https://avatars.githubusercontent.com/u/21188012?v=4)](https://github.com/gpibarra "gpibarra (4 commits)")[![yagrasdemonde](https://avatars.githubusercontent.com/u/35835849?v=4)](https://github.com/yagrasdemonde "yagrasdemonde (2 commits)")[![A909M](https://avatars.githubusercontent.com/u/119125167?v=4)](https://github.com/A909M "A909M (1 commits)")[![galliroberto](https://avatars.githubusercontent.com/u/4560537?v=4)](https://github.com/galliroberto "galliroberto (1 commits)")

---

Tags

laravelfilamentfilamentphpGuavafilament-modal-relation-managers

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/guava-filament-modal-relation-managers/health.svg)

```
[![Health](https://phpackages.com/badges/guava-filament-modal-relation-managers/health.svg)](https://phpackages.com/packages/guava-filament-modal-relation-managers)
```

###  Alternatives

[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[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)[dotswan/filament-map-picker

Easily pick and retrieve geo-coordinates using a map-based interface in your Filament applications.

128192.3k3](/packages/dotswan-filament-map-picker)[croustibat/filament-jobs-monitor

Background Jobs monitoring like Horizon for all drivers for FilamentPHP

274325.8k8](/packages/croustibat-filament-jobs-monitor)[stephenjude/filament-debugger

About

104162.2k2](/packages/stephenjude-filament-debugger)

PHPackages © 2026

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