wotz / laravel-livewire-forms
Easy to build/use livewire forms.
Requires
- php: ^8.3
- livewire/livewire: ^4.0
- petercoles/multilingual-country-list: ^1.2
Requires (Dev)
- orchestra/testbench: ^9.0|^10.0|^11.0
- pestphp/pest: ^4.0
- dev-master
- v5.1.0
- v5.0.0
- v4.0.0
- v3.1.0
- v3.0.0
- 2.x-dev
- v2.2.0
- 2.1.0
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.0
- dev-copilot/update-package-for-php-8-5
- dev-feature/boost_guidlines
- dev-feature/2.x-extended-file-validation
- dev-feature/bootstrap5-update
- dev-feature/form-variables
- dev-feature/ana006-selectfield-nullable
This package is auto-updated.
Last update: 2026-04-17 09:54:59 UTC
README
Package to easily configure Livewire forms with a set of existing fields.
Installation
You can install the package via composer:
composer require wotz/laravel-livewire-forms
You can publish the config file with:
php artisan vendor:publish --tag="laravel-livewire-forms-config"
This is the contents of the published config file:
return [ 'defaults' => [ 'formClass' => 'd-flex flex-column gap-8', 'rowClass' => 'row gy-8', 'colClass' => 'col-md', 'divClass' => 'form-group has-validation', 'groupClass' => 'd-flex flex-column gap-8', 'inputClass' => 'form-control', 'inputSelectClass' => 'form-select', 'labelClass' => 'form-label', 'fileInputClass' => 'form-input-file', 'fileInputLabelClass' => 'form-label-file', 'checkInputClass' => 'form-check-input', 'checkLabelClass' => 'form-check-label', 'buttonClass' => 'btn btn--primary', 'buttonIcon' => null, 'textareaRows' => 5, ] ];
Optionally, you can publish the views using
php artisan vendor:publish --tag="laravel-livewire-forms-views"
Usage
@livewire('registration-form')
Documentation
For the full documentation, check here.
AI Guidelines
This package includes AI guidelines and skills for Laravel Boost, providing AI agents with context about the package's conventions and best practices.
When using Laravel Boost, run:
php artisan boost:install
The installer will automatically detect this package and include its guidelines. The wotz-livewire-forms skill will also be available for on-demand detailed guidance while building forms.
Learn more in https://laravel.com/docs/12.x/boost.
Testing
vendor/bin/pest
Changelog
Please see CHANGELOG for more information on what has changed recently.
Upgrading
Please see UPGRADING for more information on how to upgrade to a new version.