PHPackages                             ameax/filament-settings - 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. ameax/filament-settings

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

ameax/filament-settings
=======================

A flexible settings management system for Laravel with Filament integration

v2.0.0(8mo ago)067MITPHPPHP ^8.2

Since Aug 1Pushed 7mo agoCompare

[ Source](https://github.com/ameax/filament-settings)[ Packagist](https://packagist.org/packages/ameax/filament-settings)[ RSS](/packages/ameax-filament-settings/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

Ameax Filament Settings
=======================

[](#ameax-filament-settings)

A flexible settings management system for Laravel with Filament integration.

Features
--------

[](#features)

- 🔧 Dynamic settings management with type casting
- 🔐 Built-in encryption support for sensitive data
- 📦 Caching for optimal performance
- 🎨 Beautiful Filament UI with tabs and groups
- ✅ Validation support
- 🌐 Translation ready
- 🔍 Easy to extend and customize

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

[](#installation)

### 1. Install via Composer

[](#1-install-via-composer)

```
composer require ameax/filament-settings
```

### 2. Publish Configuration

[](#2-publish-configuration)

```
php artisan vendor:publish --tag=filament-settings-config
```

### 3. Run Migrations

[](#3-run-migrations)

```
php artisan vendor:publish --tag=filament-settings-migrations
php artisan migrate
```

### 4. (Optional) Publish Views

[](#4-optional-publish-views)

If you want to customize the views:

```
php artisan vendor:publish --tag=filament-settings-views
```

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

[](#configuration)

Edit `config/filament-settings.php` to define your settings:

```
return [
    'definitions' => [
        'shop' => [
            'label' => 'Shop Settings',
            'icon' => 'heroicon-o-shopping-bag',
            'order' => 1,
            'settings' => [
                'shop.name' => [
                    'label' => 'Shop Name',
                    'type' => 'string',
                    'validation' => 'required|string|max:255',
                    'tab' => 'general',
                    'order' => 1,
                    'helper' => 'Your shop display name',
                    'placeholder' => 'My Awesome Shop',
                ],
                'shop.email' => [
                    'label' => 'Contact Email',
                    'type' => 'email',
                    'validation' => 'required|email',
                    'tab' => 'general',
                    'order' => 2,
                ],
                'shop.maintenance_mode' => [
                    'label' => 'Maintenance Mode',
                    'type' => 'boolean',
                    'tab' => 'advanced',
                    'default' => false,
                ],
            ],
        ],
    ],
];
```

### Available Field Types

[](#available-field-types)

- `string` - Text input
- `email` - Email input
- `url` - URL input
- `integer` - Number input (whole numbers)
- `float` - Number input (decimals)
- `boolean` - Checkbox
- `select` - Dropdown selection
- `textarea` - Multi-line text
- `encrypted` - Password input with encryption
- `json` / `array` - JSON data (automatically encoded/decoded)

Usage
-----

[](#usage)

### In Filament Admin Panel

[](#in-filament-admin-panel)

The settings page will automatically appear in your Filament admin panel. You can customize its position using the `navigationSort` property.

### In Your Application

[](#in-your-application)

```
use Ameax\FilamentSettings\Facades\Settings;

// Get a setting
$shopName = Settings::get('shop.name', 'Default Shop');

// Set a setting
Settings::set('shop.email', 'contact@example.com');

// Get all settings in a group
$shopSettings = Settings::getByGroup('shop');

// Clear cache after bulk updates
Settings::clearCache();
```

### In Blade Views

[](#in-blade-views)

```
{{ \Ameax\FilamentSettings\Facades\Settings::get('shop.name') }}
```

Tailwind CSS Configuration
--------------------------

[](#tailwind-css-configuration)

If you're using custom Tailwind classes in your published views, you need to add the package's resource paths to your `tailwind.config.js` to ensure all classes are generated:

```
module.exports = {
    content: [
        // ... your existing content paths
        './vendor/ameax/filament-settings/resources/views/**/*.blade.php',
    ],
    // ... rest of your config
}
```

This is especially important if you:

- Published and customized the package views
- Added custom Tailwind classes to the blade templates
- Are experiencing missing styles in production

### For Filament Projects

[](#for-filament-projects)

If you're using Filament, make sure to also include the package views in your Filament theme's `tailwind.config.js`:

```
import preset from './vendor/filament/support/tailwind.config.preset'

export default {
    presets: [preset],
    content: [
        // ... your existing content paths
        './vendor/ameax/filament-settings/resources/views/**/*.blade.php',
        // If you published the views:
        './resources/views/vendor/filament-settings/**/*.blade.php',
    ],
}
```

After updating your Tailwind configuration, rebuild your assets:

```
npm run build
```

Advanced Usage
--------------

[](#advanced-usage)

### Custom Validation

[](#custom-validation)

```
'settings' => [
    'api.key' => [
        'label' => 'API Key',
        'type' => 'encrypted',
        'validation' => 'required|string|min:32',
        'helper' => 'Your secure API key',
    ],
],
```

### Tabs Organization

[](#tabs-organization)

Group related settings using tabs:

```
'settings' => [
    'shop.name' => [
        'tab' => 'general',
        // ...
    ],
    'shop.tax_rate' => [
        'tab' => 'financial',
        // ...
    ],
    'shop.api_key' => [
        'tab' => 'advanced',
        // ...
    ],
],
```

### Custom Select Options

[](#custom-select-options)

```
'shop.currency' => [
    'label' => 'Currency',
    'type' => 'select',
    'options' => [
        'USD' => 'US Dollar',
        'EUR' => 'Euro',
        'GBP' => 'British Pound',
    ],
    'default' => 'USD',
],
```

Extending
---------

[](#extending)

### Custom Setting Types

[](#custom-setting-types)

You can extend the Setting model to add custom types:

```
namespace App\Models;

use Ameax\FilamentSettings\Models\Setting as BaseSettings;

class Setting extends BaseSettings
{
    public function getValueAttribute($value)
    {
        if ($this->type === 'custom_type') {
            return $this->processCustomType($value);
        }

        return parent::getValueAttribute($value);
    }
}
```

Then update your service provider to use your custom model.

Security
--------

[](#security)

- Sensitive settings can use the `encrypted` type for automatic encryption
- All settings are validated before saving
- Proper authorization should be implemented in your Filament resources

License
-------

[](#license)

MIT

###  Health Score

36

—

LowBetter than 81% of packages

Maintenance64

Regular maintenance activity

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.5% 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 ~2 days

Total

2

Last Release

266d ago

Major Versions

v1.0.0 → v2.0.02025-08-16

### Community

Maintainers

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

---

Top Contributors

[![raymadrona](https://avatars.githubusercontent.com/u/4514908?v=4)](https://github.com/raymadrona "raymadrona (8 commits)")[![ms-aranes](https://avatars.githubusercontent.com/u/69188126?v=4)](https://github.com/ms-aranes "ms-aranes (5 commits)")

### Embed Badge

![Health badge](/badges/ameax-filament-settings/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M683](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M157](/packages/orchestra-canvas)[kirschbaum-development/commentions

A package to allow you to create comments, tag users and more

12369.2k](/packages/kirschbaum-development-commentions)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)[glhd/special

1929.4k](/packages/glhd-special)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k1](/packages/bjuppa-laravel-blog)

PHPackages © 2026

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