tomatophp/filament-helpers

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

Fund package maintenance!
3x1io

v1.0.0 2024-05-11 20:18 UTC

This package is auto-updated.

Last update: 2024-05-11 20:19:15 UTC


README

Screenshot

Filament Helper Classes

Latest Stable Version PHP Version Require License Downloads

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

Installation

composer require tomatophp/filament-helpers --dev

Using

to generate a new helper class you can use this command

php artisan filament:helpers

and select the type and name, and you can generate the class inside module or on selected path inside your resource.

Using Generated Class

and you can use the generated class like this

use App\Filament\Resources\AccountResource\Forms\UserForm;

public function form(Form $form): Form
{
    return UserForm::make($form);
}
use App\Filament\Resources\AccountResource\Tables\UserTable;

public function form(Table $table): Table
{
    return UserTable::make($table);
}
use App\Filament\Resources\AccountResource\Actions\UserActions;

public function table(Table $table): Table
{
    return $table->actions(UserActions::make());
}
use App\Filament\Resources\AccountResource\Actions\UserFilters;

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

Support

you can join our discord server to get support TomatoPHP

Docs

you can check docs of this package on Docs

Changelog

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

Security

Please see SECURITY for more information about security.

Credits

License

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