tomatophp / filament-helpers
Helper Class Generator to manage your forms and table inside your filament app
Fund package maintenance!
3x1io
Installs: 2 768
Dependents: 1
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 2
Open Issues: 0
Requires
- php: ^8.1|^8.2
- filament/filament: ^3.0.0
- tomatophp/console-helpers: ^1.1
This package is auto-updated.
Last update: 2024-11-18 19:49:45 UTC
README
Filament Helper Classes
Helper Class Generator to manage your forms and table inside your filament app
Screenshots
Installation
composer require tomatophp/filament-helpers
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()); }
Other Filament Packages
Checkout our Awesome TomatoPHP