anourvalar/laravel-form

Laravel blade components for HTML form elements (input / select / textarea)

Maintainers

Package info

github.com/AnourValar/laravel-form

pkg:composer/anourvalar/laravel-form

Statistics

Installs: 7 648

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

1.8.2 2026-03-09 07:49 UTC

README

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>