wotz/laravel-livewire-forms

Easy to build/use livewire forms.
1,410
Install
composer require wotz/laravel-livewire-forms
Latest Version:v5.1.0
PHP:^8.3
Laravel:10 – 13
License:MIT
Last Updated:Apr 17, 2026
Links: GitHub  ·  Packagist
Maintainer: Who Owns The Zebra

Laravel Livewire Forms

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.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

644,549,754 9,698
laravel/framework

The Laravel Framework.

598,760,099 34,966
laravel/tinker

Powerful REPL for the Laravel framework.

507,193,856 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

423,477,751 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

403,217,078 4,664

Version History

Version Released PHP License
v5.1.0 ^8.3 MIT
v5.0.0 ^8.0 MIT
v4.0.0 ^8.0 MIT
v3.1.0 ^8.0 MIT
v3.0.0 ^8.0 MIT