Form Builder
Package docs status
Section titled “Package docs status”This page is generated from public package documentation in capell-4/packages and the package manifest checked into the source repository.
| Field | Value |
|---|---|
| Composer package | capell-app/form-builder |
| Package slug | form-builder |
| Product group | Capell FormBuilder |
| Tier | premium |
| Bundle | form-builder |
| Runtime contexts | admin, frontend |
| Capell version | ^4.0 |
| Source repository | capell-app/packages |
| Source path | packages/form-builder |
| Docs source | packages/form-builder/docs |
| Manifest | capell.json |
What This Plugin Adds
Section titled “What This Plugin Adds”Form Builder is an Available, Schema-owning Capell package in the Capell FormBuilder product group. It ships as capell-app/form-builder and extends these surfaces: admin, frontend.
Build site-scoped forms in Capell and capture spam-filtered, encrypted submissions into a per-site triage inbox with one-click email replies.
After install, admins get package-owned management surfaces and public users may see package-owned frontend output or routes.
Status details:
- Status: Available
- Tier: premium
- Bundle: form-builder
- Composer package:
capell-app/form-builder - Namespace:
Capell\FormBuilder - Theme key: not applicable
Why It Matters
Section titled “Why It Matters”For developers: The package gives developers package-owned service providers, Actions, Data objects, models, Filament classes, and Blade views instead of pushing this behaviour into core or application code.
For teams: Build site-scoped forms in Capell and capture spam-filtered, encrypted submissions into a per-site triage inbox with one-click email replies.
Screens And Workflow
Section titled “Screens And Workflow”Screenshot contract: docs/screenshots.json.
- FormBuilder admin index (admin, required).
- Create/edit form schema screen (admin, required).
- Submissions index (admin, required).
- Frontend form output (frontend, required).
- Submission detail view (admin, required).
Technical Shape
Section titled “Technical Shape”- Service providers:
Capell\FormBuilder\Providers\FormBuilderServiceProvider. - Config files:
packages/form-builder/config/capell-form-builder.php. - Migrations:
packages/form-builder/database/migrations/2026_05_10_190849_01_create_form-builder_table.php,packages/form-builder/database/migrations/2026_05_10_190849_02_create_submissions_table.php. - Models:
Form,Submission. - Filament classes:
FormResource,CreateForm,EditForm,ListForms,ListSubmissions,SubmissionResource,SubmissionsTable. - Livewire components:
FormComponent,FormElementComponent. - Policies:
FormPolicy,SubmissionPolicy. - Events:
FormSubmitted. - Actions:
ArchiveSubmissionAction,BuildFormStepsAction,BuildFormValidationRulesAction,BuildSubmissionPayloadDataAction,BuildSubmissionPayloadEntriesAction,BuildSubmissionsCsvAction,CalculateFormFieldValuesAction,CalculateSubmissionSpamScoreAction,CreateFormPaymentCheckoutRedirectUrlAction,CreateSubmissionAction,DispatchSubmissionWebhookAction,DispatchUnstoredFormSubmissionAction,and 9 more. - Data objects:
FormFieldConditionData,FormFieldData,FormSettingsData,FormStepData,FormSubmissionData,ResolvedFormWebhookEndpointData,SubmissionMetaData,SubmissionPayloadData,SubmissionSpamScoreData. - Console command classes:
ExportSubmissionsCommand. - Manifest contributions:
admin-resource: Capell\FormBuilder\Manifest\FormResourceContribution,admin-resource: Capell\FormBuilder\Manifest\SubmissionResourceContribution,frontend-component: Capell\FormBuilder\Manifest\FormElementComponentContribution,model: Capell\FormBuilder\Manifest\FormModelContribution,model: Capell\FormBuilder\Manifest\SubmissionModelContribution. - Health checks:
Capell\FormBuilder\Health\FormBuilderHealthCheck. - Blade views:
packages/form-builder/resources/views/filament/submissions/payload.blade.php,packages/form-builder/resources/views/livewire/form-element.blade.php,packages/form-builder/resources/views/livewire/form.blade.php,packages/form-builder/resources/views/mail/submission-autoresponder.blade.php,packages/form-builder/resources/views/mail/submission-notification.blade.php,packages/form-builder/resources/views/mail/submission-reply.blade.php. - Cache tags:
form-builder.
Data Model
Section titled “Data Model”- Required tables:
forms,submissions. - Models:
Form,Submission. - Migration files:
2026_05_10_190849_01_create_form-builder_table.php,2026_05_10_190849_02_create_submissions_table.php. - Migration impact: run host migrations through the package install flow before opening package surfaces.
- Deletion/retention behaviour: Docs gap unless the package has an explicit pruning command, retention setting, or tested cascade path.
Install Impact
Section titled “Install Impact”- Admin navigation: adds package-owned Filament classes when registered.
- Permissions: none declared in
capell.json. - Public routes: none detected in package route files.
- Database changes: package migrations are declared.
- Settings: no package settings declared.
- Queues or schedules: none detected in standard package paths.
- Cache tags:
form-builder. - Commands: console command classes detected:
ExportSubmissionsCommand.
Common Pitfalls
Section titled “Common Pitfalls”- Run migrations before opening package resources or public routes.
- Keep public Blade and cached HTML free of authoring markers, model IDs, permissions, signed editor URLs, and lazy database queries.
- Keep
composer.json,composer.local.json,capell.json, docs, screenshots, and tests aligned when the package surface changes.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Likely cause | Check | Fix |
|---|---|---|---|
| Package surface is missing after install | Provider or manifest is not loaded | Confirm capell.json, package composer.json, and provider registration | Reinstall the package, refresh Composer autoload, and clear host caches |
| Admin screen or command fails on missing table | Package migrations have not run | Check the tables listed in Data Model | Run host migrations and rerun the focused package test |
| Public output leaks unexpected state | Render data, cache variation, or authoring boundary has regressed | Check public Blade, cache tags, and public-output safety tests | Move data loading out of Blade and rerun the package public-output tests |
Quick Start
Section titled “Quick Start”- Install the package:
composer require capell-app/form-builder. - Run the required setup:
php artisan migrate. - Open the related Capell admin surface and verify Form Builder appears.
Next Steps
Section titled “Next Steps”- Package docs
- Overview
- Screenshot contract
- Marketplace assets
- Capell content language plan
- Capell documentation design system
- Capell and package ERD notes
- Related packages: Payments.
- Focused tests:
vendor/bin/pest packages/form-builder/tests --configuration=phpunit.xml.