New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

mangoldsecurity/filament-settings

Filament integration for the mangoldsecurity/settings package
1,001
Install
composer require mangoldsecurity/filament-settings
Latest Version:v2.4.0
PHP:^8.2
Laravel:11 · 12 · 13
Older releases:10
License:MIT
Last Updated:Jan 25, 2026
Links: GitHub  ·  Packagist
Maintainer: leemangold

Filament Settings

Filament Settings

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This Filament plugin provides an integration for the outerweb/settings package.

Table of Contents

Installation

You can install the package via composer:

composer require mangoldsecurity/filament-settings

Follow the installation instructions for the outerweb/settings package.

Add the plugin to your panel:

use MangoldSecurity\FilamentSettings\SettingsPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->plugins([
            // ...
            SettingsPlugin::make()
                ->pages([
                    // Add your settings pages here
                ]),
        ]);
}

Usage

Create a Page

Create a settings page by extending MangoldSecurity\FilamentSettings\Pages\Settings:

namespace App\Filament\Pages;

use MangoldSecurity\FilamentSettings\Pages\Settings;

class MySettings extends Settings
{
    public function form(Schema $schema): Schema
    {
        return $schema
            ->components([
                Tabs::make()
                    ->columnSpanFull()
                    ->tabs([
                        Tab::make('General')
                            ->schema([
                                TextInput::make('general.brand_name')
                                    ->required(),
                            ]),
                        Tab::make('Seo')
                            ->schema([
                                TextInput::make('seo.title')
                                    ->required(),
                                TextInput::make('seo.description')
                                    ->required(),
                            ]),
                    ]),
            ]);
    }
}

Creating multiple pages

You can create as many settings pages as you want.

use MangoldSecurity\FilamentSettings\SettingsPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->plugins([
            // ...
            SettingsPlugin::make()
                ->pages([
                    \App\Filament\Pages\GeneralSettings::class,
                    \App\Filament\Pages\SeoSettings::class,
                    \App\Filament\Pages\OtherSettings::class,
                ]),
        ]);
}

Each page just needs to extend MangoldSecurity\FilamentSettings\Pages\Settings. You can override the all properties like the icon, navigationGroup... just like a normal Filament page.

Mutating settings data

You can mutate the settings before filling the form and before saving them to the database by defining the mutateFormDataBeforeFill and mutateFormDataBeforeSave methods.

For example, if you want to store all settings under a specific tenant key:

    public function mutateFormDataBeforeFill(array $data): array
    {
        return collect($data)->get($this->getTenantKey(), []);
    }

    public function mutateFormDataBeforeSave(array $data): array
    {
        return collect($data)->mapWithKeys(function ($item, $key) {
            return ["{$this->getTenantKey()}.{$key}" => $item];
        })->toArray();
    }

    /**
     * A custom function for this example
     */
    private function getTenantKey(): string
    {
        return 'tenant'; // Your logic to determine the tenant
    }

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.

Related Packages

outerweb/filament-settings

Filament integration for the outerweb/settings package

128,333 36
mangoldsecurity/settings

Application wide settings stored in your database

8,966 0
wotz/filament-settings

This is my package filament-settings

1,670 1
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

660,512,042 9,702

Version History

Version Released PHP Laravel License
v2.4.0 ^8.2 MIT
v2.3.0 ^8.4 MIT
v2.2.0 ^8.4 MIT
v2.1.0 ^8.4 MIT
v2.0.0 ^8.4 MIT