php artisan filament:helpers
and select the type and name, and you can generate the class inside the module or on the selected path inside your resource.
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());
}