© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
18 replies
Noxo

The huge form is too slow

I have a form that has 200+ fields.
When saving I get the timeout error
Maximum execution time of 30 seconds exceeded
Maximum execution time of 30 seconds exceeded


Any ideas on how to speed this up?

The form is generated automatically (not static).

Tabs::make()
    ->hiddenOn('create')
    ->tabs(function ($record) {
        ray('tabs');

        $processors = once(fn () => $record->processors()->with('template')->get());

        return $processors
            ->map(
                fn ($processor) => Tab::make($processor->name)
                    ->statePath('fields.' . $processor->template_id)
                    ->schema(
                        $processor->template->fields
                            ->map(fn ($field) => FieldBuilderService::build(FieldData::from($field)))
                            ->toArray()
                    )
                    ->columns(2)
            )
            ->toArray();
    }),
Tabs::make()
    ->hiddenOn('create')
    ->tabs(function ($record) {
        ray('tabs');

        $processors = once(fn () => $record->processors()->with('template')->get());

        return $processors
            ->map(
                fn ($processor) => Tab::make($processor->name)
                    ->statePath('fields.' . $processor->template_id)
                    ->schema(
                        $processor->template->fields
                            ->map(fn ($field) => FieldBuilderService::build(FieldData::from($field)))
                            ->toArray()
                    )
                    ->columns(2)
            )
            ->toArray();
    }),
Screenshot_2024-08-06_at_21.23.17.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

MorphToSelect is too slow
FilamentFFilament / ❓┊help
2y ago
live is too slow
FilamentFFilament / ❓┊help
3y ago
FilamentPHP too slow
FilamentFFilament / ❓┊help
3y ago
Toggle visibility on Form Field is slow
FilamentFFilament / ❓┊help
3y ago