PHPackages                             luttje/filament-user-attributes - 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. luttje/filament-user-attributes

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

luttje/filament-user-attributes
===============================

Let your users specify custom attributes for models.

4.0.0(1mo ago)9591[3 issues](https://github.com/luttje/filament-user-attributes/issues)MITPHPPHP ^8.2CI passing

Since Nov 17Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/luttje/filament-user-attributes)[ Packagist](https://packagist.org/packages/luttje/filament-user-attributes)[ Docs](https://github.com/luttje/filament-user-attributes)[ Fund](https://www.paypal.com/donate?hosted_button_id=XGVDN2YMXC8TL)[ RSS](/packages/luttje-filament-user-attributes/feed)WikiDiscussions filament-v4 Synced 1mo ago

READMEChangelog (10)Dependencies (32)Versions (21)Used By (0)

[![Filament User Attributes](./.github/banner.jpeg)](./.github/banner.jpeg)

Warning

This package is still in development. It is not yet ready for production use and the API may change at any time.

[![Tests](https://github.com/luttje/filament-user-attributes/actions/workflows/run-tests.yml/badge.svg)](https://github.com/luttje/filament-user-attributes/actions/workflows/run-tests.yml)[![Coverage Status](https://camo.githubusercontent.com/c51f7a0e0384790a572d9bd84fcb6cd5715c1d8ab36c312c2249ba8d563f2f1c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6c7574746a652f66696c616d656e742d757365722d617474726962757465732f62616467652e7376673f6272616e63683d66696c616d656e742d7634)](https://coveralls.io/github/luttje/filament-user-attributes?branch=filament-v4)[![Fix PHP Code Styling](https://github.com/luttje/filament-user-attributes/actions/workflows/fix-php-code-styling.yml/badge.svg)](https://github.com/luttje/filament-user-attributes/actions/workflows/fix-php-code-styling.yml)

Filament User Attributes
========================

[](#filament-user-attributes)

Let your users specify custom attributes for models in Filament, similar to Custom Fields in WordPress. For Laravel 11 and 12 and Filament 4.

> **Demonstration:** showing the creation of a custom user attribute for the 'Locations' resource of this app:
>
>     demonstration.mp4    In this demonstration:
>
> 1. A checkbox is added and it's order in the table and form is specified.
> 2. The checkbox is displayed in the table and form. Users can now toggle the checkbox and view the value in the table.

Note

This is a third-party package not affiliated with Filament or Laravel.

🚀 Getting started
-----------------

[](#-getting-started)

1. Make sure your project meets these requirements:

    - PHP 8.2 or higher
    - [Livewire 3.4](https://livewire.laravel.com/) or higher
    - [Filament 4.0](https://filamentphp.com/docs) or higher
    - A database that supports JSON columns, e.g:
        - MySQL 5.7.8 or higher
        - PostgreSQL 9.2 or higher
        - SQLite 3.38 or higher
2. Install the [package via composer](https://packagist.org/packages/luttje/filament-user-attributes):

    ```
    composer require luttje/filament-user-attributes
    ```
3. Run the following command to fully install the package:

    ```
    php artisan filament-user-attributes:install
    ```

    *This publishes the migrations to create the two required tables and runs them.*
4. Run the wizard command to help you setup your project code:

    ```
    php artisan filament-user-attributes:wizard
    ```

    The wizard will help you:

    - Specify which models should have custom user attributes
    - Setup a model that can configure the user attributes for each user (e.g. a user or tenant model)
    - Setup resources that the configuration model can configure custom attributes for

    Finally you need to show the user attributes configuration form somewhere. That way users can actually configure their custom attributes for the resource.
5. Create a resource and inherit from the `UserAttributeConfigResource` class:

    ```
    // app/Filament/Resources/UserAttributeConfigResource.php
    namespace App\Filament\Resources;

    use Luttje\FilamentUserAttributes\Filament\Resources\UserAttributeConfigResource as BaseUserAttributeConfigResource;

    class UserAttributeConfigResource extends BaseUserAttributeConfigResource
    {
        protected static string | BackedEnum | null $navigationIcon = 'heroicon-o-rectangle-stack';
    }
    ```

    *Or you can create your own resource from scratch. See the [source code](./src/Filament/Resources/) for inspiration.*

**🎉 That was all, you and your users can now configure custom attributes!**

> Your users (or tenants) can now configure custom attribute fields:
>
> [![](./.github/screenshot-management-form.png)](./.github/screenshot-management-form.png)
>
> The configured custom attributes are (optionally) added to the resource form and table:
>
> [![](./.github/screenshot-resulting-form.png)](./.github/screenshot-resulting-form.png)

**🎉 You're now ready to:**🖇[Let your users configure which attributes should be added to models](./docs/manual-configurations.md#-user-configured-attributes-for-models)🎈[Have the custom attribute fields and columns display in a Livewire component](./docs/manual-configurations.md#-filament-livewire-components)📎[Set and use the user attributes yourself](./docs/additional-api.md#-custom-usage)✏ Customizing
-------------

[](#-customizing)

- To modify translations, publish the translations file:

    ```
    php artisan vendor:publish --tag=filament-user-attributes-translations
    ```
- To modify the configuration, publish the configuration file:

    ```
    php artisan vendor:publish --tag=filament-user-attributes-config
    ```

✨ Features
----------

[](#-features)

- Add custom attributes to any model
- Support for UUIDs
- Support for ULIDs
- Easily display the attributes in a Filament form
- Easily display the attributes in a Filament table
- Sensible validations for input types
- User interface for managing user attributes, including:
    - Allow users to specify order of attributes
        - In the form
        - In the table
    - Allow users to hide attributes
        - In the form
        - In the table
    - Users can specify default values for attributes
    - Users can specify if attributes are required
    - Users can specify if attributes inherit their value from another attribute, even from a related model, for:
        - Resources
        - Livewire components (if they implement the static `::getModel()` method)
        - Related fields that have a {relation}\_id field in the form
        - Related attributes that have no field in this form
        - Fields nested inside layout components (Section, Tabs, Fieldset) whose children are defined via a `Closure` — these cannot be resolved outside a Livewire context and will not appear in the inherit attribute dropdown
    - Allow users to specify if an attribute should have a limit, wrap text or format as currency
    - Allow users to specify if an attribute should be searchable and/or sortable
    - Support for toggleable attribute columns in the table on a per-user basis
- Support for Tabs and Sections in the form
- Wizard command to help you setup your project code

**Supported Input types:**

- Text
- Textarea
- Number
    - Integer
    - Decimal
    - Specific range
    - Specific decimal places
- Select
    - Specific options
    - From an existing model property
- Radio
    - Specific options
    - From an existing model property
- Tags
    - With suggestions
- Date
    - Date
    - Time
    - Date and time
- Checkbox
    - With default
- Toggle
    - With default
- File
    - Image
    - PDF
    - Other
    - Preview
- Color

❤ Contributing
--------------

[](#-contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details on how to contribute to this project. You'll also find instructions on [how to run the tests](.github/CONTRIBUTING.md#%F0%9F%A7%AA-testing).

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance83

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 89.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 ~60 days

Recently: every ~172 days

Total

15

Last Release

59d ago

Major Versions

0.9.1 → 3.9.12026-03-14

3.9.1 → 4.0.02026-03-14

PHP version history (3 changes)0.5.0PHP ^8.1

0.9.0PHP ^8.0

4.0.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![luttje](https://avatars.githubusercontent.com/u/2738114?v=4)](https://github.com/luttje "luttje (200 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (15 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (9 commits)")

---

Tags

laravelluttjefilament-user-attributes

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/luttje-filament-user-attributes/health.svg)

```
[![Health](https://phpackages.com/badges/luttje-filament-user-attributes/health.svg)](https://phpackages.com/packages/luttje-filament-user-attributes)
```

###  Alternatives

[leandrocfe/filament-apex-charts

Apex Charts integration for Filament PHP.

4861.2M8](/packages/leandrocfe-filament-apex-charts)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[guava/calendar

Adds support for vkurko/calendar to Filament PHP.

298241.0k3](/packages/guava-calendar)[pboivin/filament-peek

Full-screen page preview modal for Filament

253319.6k12](/packages/pboivin-filament-peek)[dotswan/filament-map-picker

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

124139.3k2](/packages/dotswan-filament-map-picker)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)

PHPackages © 2026

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