avnsh1111/filament-dynamic-form-builder
A Filament v4 plugin that lets you design dynamic forms, render them anywhere, store submissions, and send email notifications.
Builder field (text, textarea, select, radio, checkbox, toggle, number, date-time, file upload, rich editor).<livewire:av-dynamic-form slug="..." />) that converts saved schema to Filament form components on the fly.composer require avnsh1111/filament-dynamic-form-builder
php artisan vendor:publish --tag=filament-dfb-config
php artisan vendor:publish --tag=filament-dfb-migrations
php artisan migrate
php artisan filament:assets
Register in your panel provider:
use Avnsh1111\FilamentDynamicFormBuilder\DynamicFormBuilderPlugin;
public function panel(\Filament\Panel $panel): \Filament\Panel
{
return $panel
->plugin(DynamicFormBuilderPlugin::make()
->navigationGroup('Content')
->navigationIcon('heroicon-o-rectangle-stack'));
}
Render a form (frontend or anywhere Blade can run Livewire):
<livewire:av-dynamic-form slug="contact-us" />
See config/filament-dfb.php for route prefix, middleware, spam honeypot field name, email settings, etc.
You can now organize your forms with sections and control the layout of fields:
Add custom HTML attributes to any form field:
Configure email notifications for form submissions:
In both subject lines and email templates, you can use field tokens in the format {field_name}:
Thank you for contacting us, {name}!
We've received your message and will respond to {email} shortly.
Your message:
{message}
Contributions are welcome. Please feel free to submit a Pull Request.
MIT
How can I help you explore Laravel packages today?