This package provides the standard scaffolding of form builder functionality used in most projects.
You can install the package via composer:
| Version / Branch | Laravel Support | Install Command |
|---|---|---|
| 1.x | <= v10 | composer require dcodegroup/form-builder:^1.0 |
| 2.x | >= v11 | composer require dcodegroup/form-builder:^2.0 |
| 3.x | >= v11 | composer require dcodegroup/form-builder:^3.0 |
Then run the installation command.
php artisan form-builder:installThis will publish the configuration file and the migration file.
Run the migrations
php artisan migrateLocated in
src\Http\Traits\FormValidator.php
To build the assets, run this command
npm run buildThe project uses Tailwind CSS v3 with v4-compatible syntax. This means:
- All CSS utilities and Vue components are compatible with both Tailwind v3 and v4
- Opacity syntax uses the modern slash notation:
ring-sky-200/50instead ofring-opacity-50 - When upgrading to Tailwind v4 in the future, no CSS or component changes will be needed
Custom Theme Extensions:
brandcolor palette (25, 50, 100, ..., 950) for brand stylingsuccess,error,warningcolor utilities- Custom
fillwidth utility for responsive layouts
Note: The /example directory remains on Tailwind v3 for backwards compatibility.
Check example folder to see how to use the package.
/example