Helper Class Generator to manage your forms and table inside your filament app
composer require tomatophp/filament-helpers
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.
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());}
Checkout our Awesome TomatoPHP