anourvalar/laravel-form

Laravel blade components for HTML form elements (input / select / textarea)
8,857
Install
composer require anourvalar/laravel-form
Latest Version:1.9.8
PHP:^8.0
License:MIT
Last Updated:Aug 8, 2026
Links: GitHub  ·  Packagist
Maintainer: AnourValar

Laravel blade components for HTML form elements

Installation

composer require anourvalar/laravel-form

Features

  • Replacement to the old values on validation failure;

  • Error class addition for invalid elements.

Usage

Input

<x-input type="text" name="foo" value="some text" />
<x-input type="checkbox" name="foo" value="1" :checked="$isChecked" />
<x-input type="radio" name="foo" value="1" checked-value="2" />
<x-input type="radio" name="foo" value="2" checked-value="2" /> <!-- will be checked -->
<x-input type="radio" name="foo" value="3" checked-value="2" />

Select

<x-select name="foo" :options="[1 => ['title' => 'One'], 2 => ['title' => 'Two']]" selected="2" />

Textarea

<x-textarea name="foo">Text</x-textarea>

Related Packages

helmut/forms

A customisable and testable form abstraction library.

19 0
activismebe/laravel-form-helpers

Handle form model binding, old input binding and validation error messages in a...

1,131 1
sahibalejandro/laravel-form-helpers

Handle form model binding, old input binding and validation error messages in a...

2,469 7
yocmen/blade-components

This package introduces the concept of components in blade templating, take it f...

1,253 8
vlados/cascader

A cascading dropdown component for Laravel Livewire with Alpine.js

1,024 0