Search by

tomatophp / filament-helpers

fadymondy

Helper Class Generator to manage your forms and table inside your filament app

Package info

github.com/tomatophp/filament-helpers

pkg:composer/tomatophp/filament-helpers

Fund package maintenance!

3x1io

Statistics

Installs: 8 162

Dependents: 1

Suggesters: 0

Stars: 12

Open Issues: 4

5.0.0 2026-09-15 06:44 UTC

This package is auto-updated.

Last update: 2026-09-15 07:34:00 UTC


README

Screenshot

Filament Helper Classes

Latest Stable Version License Downloads

Helper class generator to keep the forms, tables, actions and filters of your Filament app in their own classes.

Version Compatibility

Plugin Filament Laravel PHP
1.x 3.x 10.x / 11.x 8.1+
5.x 5.x 12.x / 13.x 8.2+

Installation

composer require tomatophp/filament-helpers

Usage

Run the command and pick the type and name; you can generate the class in app/, inside a laravel-modules module, or in any source folder, optionally inside a resource folder.

php artisan filament:helpers

Or pass everything on the command line:

# form, table, actions, filters or all
php artisan filament:helpers User all
php artisan filament:helpers User form --resource=Users
php artisan filament:helpers User table Blog                       # inside the Blog module
php artisan filament:helpers User all "" packages/accounts/src --namespace="TomatoPHP\FilamentAccounts"

Existing classes are kept unless you confirm or pass --force.

Using Generated Classes

use App\Filament\Resources\Users\Forms\UserForm;
use Filament\Schemas\Schema;

public static function form(Schema $schema): Schema
{
    return UserForm::make($schema);
}
use App\Filament\Resources\Users\Tables\UserTable;
use Filament\Tables\Table;

public static function table(Table $table): Table
{
    return UserTable::make($table);
}
use App\Filament\Resources\Users\Actions\UserActions;
use App\Filament\Resources\Users\Filters\UserFilters;

public static function table(Table $table): Table
{
    return $table
        ->recordActions(UserActions::make())
        ->filters(UserFilters::make());
}

Custom Stubs

php artisan vendor:publish --tag="filament-helpers-stubs"

Then set stub_path in config/filament-helpers.php (publish it with --tag="filament-helpers-config") to base_path('stubs/filament-helpers').

Testing

composer test

Other Filament Packages

Checkout our Awesome TomatoPHP