PHPackages                             saade/filament-extra - 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. saade/filament-extra

ActiveLibrary

saade/filament-extra
====================

A set of reusable Filament helpers, columns, fields, actions and more!

v3.2.1(11mo ago)329956[3 PRs](https://github.com/saade/filament-extra/pulls)MITPHPPHP ^8.1CI passing

Since Oct 19Pushed 1mo ago3 watchersCompare

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

READMEChangelog (5)Dependencies (8)Versions (9)Used By (0)

Filament Extra
==============

[](#filament-extra)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d73df7cca5d48330901322cf51f0611f910fafc6f268423a4507278b1dd2cb1e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616164652f66696c616d656e742d65787472612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/saade/filament-extra)[![Total Downloads](https://camo.githubusercontent.com/5db2ead23ed4be8359e20a2439eed9ac50dc749c465f4c3220366f33e30e8a5f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616164652f66696c616d656e742d65787472612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/saade/filament-extra)

A set of reusable Filament helpers, columns, fields, actions and more!

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

[](#installation)

You can install the package via composer:

```
composer require saade/filament-extra
```

- [Filament Extra](#filament-extra)
    - [Installation](#installation)
    - [Forms](#forms)
        - [Relation Manager](#relation-manager)
        - [ColorSelect](#colorselect)
    - [Concerns](#concerns)
        - [trait HasSoftDeletedRecords](#trait-hassoftdeletedrecords)
        - [trait NavigationGroupAwareBreadcrumbs](#trait-navigationgroupawarebreadcrumbs)
        - [trait HasParentResource](#trait-hasparentresource)
    - [Support](#support)
        - [class Color](#class-color)
        - [function color](#function-color)
        - [function html](#function-html)
        - [function md](#function-md)
        - [function blade](#function-blade)
    - [Changelog](#changelog)
    - [Contributing](#contributing)
    - [Security Vulnerabilities](#security-vulnerabilities)
    - [Credits](#credits)
    - [License](#license)

Forms
-----

[](#forms)

### Relation Manager

[](#relation-manager)

This field lets you render a Relation Manager inside a form. It's useful if you need to render it inside a tab or a modal.

```
use Saade\FilamentExtra\Forms\Components\RelationManager;
use App\Filament\Resources\YourResource\RelationManagers\YourRelationManager;

RelationManager::make(YourRelationManager::class)
    ->lazy(bool $lazy = true)
```

### ColorSelect

[](#colorselect)

This field lets you pick a Filament color from your application.

```
use Saade\FilamentExtra\Forms\Components\ColorSelect;

ColorSelect::make('color')
```

Concerns
--------

[](#concerns)

### trait HasSoftDeletedRecords

[](#trait-hassoftdeletedrecords)

Tired of overriding the `getEloquentQuery` method in every resource? This trait will handle soft deletes for you.

```
use Filament\Resources\Resource;

use Saade\FilamentExtra\Concerns\HasSoftDeletedRecords;

class YourResource extends Resource
{
    use HasSoftDeletedRecords;
}
```

### trait NavigationGroupAwareBreadcrumbs

[](#trait-navigationgroupawarebreadcrumbs)

This trait will handle breadcrumbs for you. It's useful if you need to render breadcrumbs for a resource that belongs to a navigation group.

```
use Filament\Resources\Pages\CreateRecord;

use Saade\FilamentExtra\Concerns\NavigationGroupAwareBreadcrumbs;

class CreateYourRecord extends CreateRecord
{
    use NavigationGroupAwareBreadcrumbs;
}
```

### trait HasParentResource

[](#trait-hasparentresource)

This trait will handle nested resources for you. [Read the blog post](https://laraveldaily.com/post/filament-nested-resources-courses-lessons) if you want to know more. This code was partially taken from [LaravelDaily/filament-nested-resources](https://github.com/LaravelDaily/filament-nested-resources) and contributed back to the community.

1. Add the `$parentResource` property to your child resource.

```
use Filament\Resources\Resource;

class ChildResource extends Resource
{
    public static ?string $parentResource = ParentResource::class;
}
```

2. Add the child resource pages to the parent resource.

```
use Filament\Resources\Resource;

class ParentResource extends Resource
{
    public static function getPages(): array
    {
        return [
            'index' => Pages\ManageParents::route('/'),
            'edit' => Pages\EditParent::route('/{record}/edit'),

            // Please note that 'child' can be anything you want. It defaults to the resource slug.
            // If you want to change it, you need to override the $pageNamePrefix property on the child resource pages.
            'child.index' => ChildResource\Pages\ListChildren::route('/{parent}/children'),
            'child.create' => ChildResource\Pages\CreateChild::route('{parent}/children/create'),
            'child.edit' => ChildResource\Pages\EditChild::route('{parent}/children/{record}/edit'),
        ];
    }
}
```

3. Add the trait to your child resource pages.

```
use Filament\Resources\Pages\ListRecords;

use Saade\FilamentExtra\Concerns\HasParentResource;

class ListChildren extends ListRecords
{
    use HasParentResource;

    // (optional) Define custom relationship key (if it does not match the table name pattern).
    protected ?string $relationshipKey = 'parent_id';

    // (optional) Define custom child page name prefix for child pages (if it does not match the parent resource slug).
    protected ?string $pageNamePrefix = 'child';
}
```

Support
-------

[](#support)

### class Color

[](#class-color)

This class helps you interact with Filament colors. It's useful if you need to convert a color to a hex value, pick a shade to `collect()` Filament colors.

```
use Saade\FilamentExtra\Support\Color;

Color::make(name: 'fuchia', shade: 200)
  ->shade(int $shade = 500)   // Set a shade
  ->get()                     // Returns the color as array of shades
  ->toHex()                   // Returns the color as hex value
  ->toRgb()                   // Returns the color as rgb value
  ->collect()                 // Returns the color as a Laravel Collection
```

### function color

[](#function-color)

This function is a shortcut to the `Color` class.

```
use function Saade\FilamentExtra\Support\color;

color(name: 'fuchia', shade: 200)
  ->shade(int $shade = 500)   // Set a shade
  ->get()                     // Returns the color as array of shades
  ->toHex()                   // Returns the color as hex value
  ->toRgb()                   // Returns the color as rgb value
  ->collect()                 // Returns the color as a Laravel Collection
```

### function html

[](#function-html)

Use this function as a shortcut to the `Illuminate\Support\HtmlString` class.

```
use Filament\Forms;

use function Saade\FilamentExtra\Support\html;

Filament\Forms\Components\SomeField::make()
  ->label(
    html('* Label')
  )
```

### function md

[](#function-md)

Use this function as a shortcut to the `Illuminate\Support\HtmlString` class to convert markdown to HtmlString.

```
use Filament\Forms;

use function Saade\FilamentExtra\Support\md;

Filament\Forms\Components\SomeField::make()
  ->label(
    md('### Label')
  )
```

### function blade

[](#function-blade)

Use this function to render blade templates.

```
use Filament\Forms;

use function Saade\FilamentExtra\Support\blade;

Filament\Forms\Components\SomeField::make()
  ->label(
    blade(' Label', ['some' => 'data'])
  )
```

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)

- [Saade](https://github.com/saade)
- [LaravelDaily](https://github.com/LaravelDaily/filament-nested-resources) For the nested resource implementation.
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance74

Regular maintenance activity

Popularity28

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.8% 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 ~163 days

Recently: every ~203 days

Total

6

Last Release

125d ago

### Community

Maintainers

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

---

Top Contributors

[![saade](https://avatars.githubusercontent.com/u/14329460?v=4)](https://github.com/saade "saade (20 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")[![ijpatricio](https://avatars.githubusercontent.com/u/26031459?v=4)](https://github.com/ijpatricio "ijpatricio (1 commits)")

---

Tags

laravelsaadefilament-extra

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/saade-filament-extra/health.svg)

```
[![Health](https://phpackages.com/badges/saade-filament-extra/health.svg)](https://phpackages.com/packages/saade-filament-extra)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[guava/filament-knowledge-base

A filament plugin that adds a knowledge base and help to your filament panel(s).

206120.5k1](/packages/guava-filament-knowledge-base)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)

PHPackages © 2026

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