Search by

cloudcake / filament-terms

stephenlake

Filament panel terminology per tenant and/or per panel.

Package info

github.com/cloudcake/filament-terms

pkg:composer/cloudcake/filament-terms

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-11-04 18:38 UTC

This package is auto-updated.

Last update: 2026-11-16 10:16:24 UTC


README

banner

Installation

Add the cloudcake composer registry to your project's composer.json file:

"repositories": [
    {
        "type": "composer",
        "url": "https://composer.cloudcake.dev"
    }
]

Install the package via Composer

composer require cloudcake/filament-terms

Quickstart

use Cloudcake\Terms\Terminology;
use Filament\Panel;

public function panel(Panel $panel): Panel
{
    //...
    
    $panel->plugins([
        // ...
        
        Terminology::make()
               ->pageHeaderAction()
               ->descriptions()
    ]);
}

Then add the Renamable contract and HasAlternativeTerm concern to any resources that should be rename-able.

use Cloudcake\Terms\Concerns\HasAlternativeTerm;
use Cloudcake\Terms\Contracts\Renamable;
use Filament\Resources\Resource;

class UserResource extends Resource implements Renamable
{
    use HasAlternativeTerm;
    
    //...
}

Detailed API

Model Column Terminology

If you also want to be able to rename columns on a resource's model, add the RenamableColumns contract and the HasRenamableColumns concern to any models that should be rename-able.

use Cloudcake\Terms\Concerns\HasRenamableColumns;
use Cloudcake\Terms\Contracts\RenamableColumns;

class User extends Authenticatable implements RenamableColumns
{
    use HasRenamableColumns;
    
    //...
}

Explicit Model Columns

If you want to explicitly define which columns should be rename-able, you can remove the HasRenamableColumns trait explicitly define the renamable() method on the model. By default, all columns that are not hidden are rename-able.

use Cloudcake\Terms\Contracts\RenamableColumns;

class User extends Authenticatable implements RenamableColumns
{
    //...

   /**
    * Retrieve columns that are renamable.
    * 
    * @return array
    */
    public static function renamable(): array {
        return ['id', 'name'];
    }
}