A Laravel package that builds reusable HTML forms with validation, inspired by Symfony and Bootstrap 3 by default.
Overview
Laravel Form Builder extends Laravel web applications with class-based forms that can be defined once and reused across controllers and views. It follows patterns similar to Symfony's form component while leaning on Laravel's validation and rendering helpers.
Developers register a service provider and facade, then define form classes manually or generate them with an Artisan make:form command, optionally seeding fields from a comma-separated list. Forms expose a fluent add API for field types such as text, textarea, and checkbox, support rules, validation error handling, and helpers to bind submitted values to Eloquent models.
Views render markup through a form() helper or array-based createByArray shortcuts. Default styling targets Bootstrap 3; a separate package exists for Bootstrap 4. The package pulls in collective HTML helpers for Form and Html aliases when needed.
It installs as a Composer dependency and integrates into existing Laravel routing and controller flows rather than running as standalone software.
Key features
- Class-based reusable form definitions
- Artisan form scaffolding command
- Laravel validation integration
- Bootstrap 3 default rendering
- Model create and update helpers
- Array-driven form construction
- FormBuilder facade and helper
Use cases
- CRUD forms in Laravel apps
- Shared admin data entry forms
- Validated POST workflows
- Rapid form scaffolding