anourvalar / laravel-form
Laravel blade components for HTML form elements (input / select / textarea)
1.9.0
2026-05-18 03:23 UTC
Requires
- php: ^8.0
- anourvalar/config-helper: ^3.3
- anourvalar/laravel-atom: ^2.24
- laravel/framework: ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.26
- phpstan/phpstan: ^2.0
- psalm/plugin-laravel: ^3.0|^4.0
- squizlabs/php_codesniffer: ^3.7
- dev-master
- 1.9.0
- 1.8.9
- 1.8.8
- 1.8.7
- 1.8.6
- 1.8.5
- 1.8.4
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.0
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.15
- 1.5.14
- 1.5.13
- 1.5.12
- 1.5.11
- 1.5.10
- 1.5.9
- 1.5.8
- 1.5.7
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.0
- dev-claude/laravel-boost-skill-docs-akq1Q
This package is auto-updated.
Last update: 2026-05-23 02:01:37 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>