PHPackages                             eightynine/filament-master-detail - 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. eightynine/filament-master-detail

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

eightynine/filament-master-detail
=================================

This is my package filament-master-detail

3.x-dev(9mo ago)01MITPHPPHP ^8.1

Since Aug 10Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/eighty9nine/filament-master-detail)[ Packagist](https://packagist.org/packages/eightynine/filament-master-detail)[ Docs](https://github.com/eightynine/filament-master-detail)[ GitHub Sponsors](https://github.com/eightynine)[ RSS](/packages/eightynine-filament-master-detail/feed)WikiDiscussions 3.x Synced 1mo ago

READMEChangelogDependencies (7)Versions (1)Used By (0)

This is my package filament-master-detail
=========================================

[](#this-is-my-package-filament-master-detail)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7256eb34d2b2466328d8881c3f096e46f0178ab055a49f9eb5942c45ffe3d137/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6569676874796e696e652f66696c616d656e742d6d61737465722d64657461696c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eightynine/filament-master-detail)[![GitHub Tests Action Status](https://camo.githubusercontent.com/341b302b514b54e0460a9fbd803d36d1ee414a9c64daa85fd32d18de5cd1c86e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6569676874796e696e652f66696c616d656e742d6d61737465722d64657461696c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/eightynine/filament-master-detail/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/afca134390b5625fc3ef0429c6ac765823098514e7857bab9b5f84db3e18667a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6569676874796e696e652f66696c616d656e742d6d61737465722d64657461696c2f6669782d7068702d636f64652d7374796c696e672e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/eightynine/filament-master-detail/actions?query=workflow%3A%22Fix+PHP+code+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/c71fdca836f9f7bf226651b2b457f98793e95433285fa6c5a96db726e605c1e2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6569676874796e696e652f66696c616d656e742d6d61737465722d64657461696c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eightynine/filament-master-detail)

This package adds a master–detail layout for Filament resources. It renders a table on the left and the selected record’s page on the right, with pagination and deep links preserved.

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

[](#installation)

You can install the package via Composer:

```
composer require eightynine/filament-master-detail
```

Publish and run the migrations:

```
php artisan vendor:publish --tag="filament-master-detail-migrations"
php artisan migrate
```

Publish the config file:

```
php artisan vendor:publish --tag="filament-master-detail-config"
```

Optionally, publish the views:

```
php artisan vendor:publish --tag="filament-master-detail-views"
```

Configuration
-------------

[](#configuration)

After publishing, you can customize settings in `config/master-detail.php`.

This is the contents of the published config file (currently no options; reserved for future use):

```
return [
];
```

Usage
-----

[](#usage)

1. Register the plugin in your Filament Panel provider and set the scopes (resources to use in the master–detail view):

```
use App\Providers\Filament\AdminPanelProvider; // or your custom Panel provider
use Filament\Panel;
use EightyNine\MasterDetail\MasterDetailPlugin;
use App\Filament\Resources\CustomerResource; // example
use App\Filament\Resources\OrderResource;    // example

class AdminPanelProvider extends AdminPanelProvider
{
	public function panel(Panel $panel): Panel
	{
		return $panel
			// ... other panel config
			->plugin(MasterDetailPlugin::make()
            ->scopes([
                OrderResource::class
            ]));
	}
}
```

2. In your target Filament Resource, implement `getMasterDetailColumns()` to define the table columns used in the master–detail view:

```
use Filament\Tables;
use Filament\Tables\Columns\TextColumn;

public function getMasterDetailColumns(): array
{
	return [
		TextColumn::make('id')->label('ID')->sortable(),
		TextColumn::make('name')->searchable()->toggleable(),
		// add more columns as needed
	];
}
```

Optional (advanced):

- Customize the base query used by the master–detail table by adding a static method to your Resource:

```
public static function modifyMasterDetailQuery(\Illuminate\Database\Eloquent\Builder $query)
{
	return $query->latest();
}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [Eighty Nine](https://github.com/eightynine)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance58

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

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

276d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/97078bfe6be687082f9d2e8cf2ba73dfaff4efb25cd4c7572c1ebd9c7e9fcbae?d=identicon)[eighty9nine](/maintainers/eighty9nine)

---

Top Contributors

[![mwakalingajohn](https://avatars.githubusercontent.com/u/14811728?v=4)](https://github.com/mwakalingajohn "mwakalingajohn (3 commits)")[![eighty9nine](https://avatars.githubusercontent.com/u/137639046?v=4)](https://github.com/eighty9nine "eighty9nine (2 commits)")

---

Tags

laraveleightyninefilament-master-detail

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/eightynine-filament-master-detail/health.svg)

```
[![Health](https://phpackages.com/badges/eightynine-filament-master-detail/health.svg)](https://phpackages.com/packages/eightynine-filament-master-detail)
```

###  Alternatives

[guava/calendar

Adds support for vkurko/calendar to Filament PHP.

298241.0k3](/packages/guava-calendar)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)[jibaymcs/filament-tour

Bring the power of DriverJs to your Filament panels and start a tour !

12247.8k](/packages/jibaymcs-filament-tour)[marcelweidum/filament-expiration-notice

Customize the livewire expiration notice

9169.0k4](/packages/marcelweidum-filament-expiration-notice)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[eightynine/filament-reports

Elegant reports in your filament application

9933.8k](/packages/eightynine-filament-reports)

PHPackages © 2026

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