Laravel Form Components screenshot

Laravel Form Components

Author Avatar Theme by Rawilk
Updated: 18 Mar 2025
441 Stars

Form components built for Tailwind & Livewire.

Overview

Form Components for Laravel is a package that offers common form components to simplify the process of building forms using Tailwind CSS. With support for validation, old form values, and wire:model, this package aims to streamline form development in Laravel projects.

Features

  • Common Form Components: Provides a variety of commonly used form components.
  • Supports Validation: Includes functionality to support Laravel’s form validation.
  • Old Form Values: Allows for populating form fields with old input values.
  • Wire:model: Supports the use of Livewire’s wire:model for dynamic form interactions.

Installation

To install the Form Components for Laravel package via composer, use the following command:

composer require rawilk/laravel-form-components

You can publish the config file using:

php artisan vendor:publish --tag=form-components-config

To view the default configuration, visit the config file on GitHub.

If you need to publish the package’s views, use the command:

php artisan vendor:publish --tag=form-components-views

To override language lines, publish them with:

php artisan vendor:publish --tag=form-components-translations

## Summary
Form Components for Laravel is a helpful package for Laravel developers looking to enhance their form-building process. With a focus on Tailwind CSS, this package streamlines the inclusion of common form components, supports validation, old form values, and dynamic Livewire interactions. Developers can easily install the package using Composer and take advantage of its features to expedite form development in Laravel applications.