laravilt / forms
Complete form builder system with 30+ field types, validation, and Blade/Inertia.js integration. Build complex forms with text inputs, selects, date pickers, file uploads, rich editors, repeaters, and more with real-time reactivity.
Fund package maintenance!
fadymondy
Installs: 35
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:Vue
pkg:composer/laravilt/forms
Requires
- php: ^8.3|^8.4
- laravilt/schemas: ^1.0
- laravilt/support: ^1.0
- spatie/laravel-package-tools: ^1.14
Requires (Dev)
- larastan/larastan: ^2.9||^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^10.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- pestphp/pest-plugin-livewire: ^3.0
- pestphp/pest-plugin-type-coverage: ^3.5
- phpstan/extension-installer: ^1.3||^2.0
- phpstan/phpstan-deprecation-rules: ^1.1||^2.0
- phpstan/phpstan-phpunit: ^1.3||^2.0
This package is auto-updated.
Last update: 2025-12-02 15:19:10 UTC
README
Laravilt Forms
Complete form builder system with 30+ field types, validation, and Blade/Inertia.js integration for Laravilt. Build complex forms with text inputs, selects, date pickers, file uploads, rich editors, repeaters, and more.
Features
- 📝 30+ Field Types - TextInput, Select, DatePicker, FileUpload, RichEditor, Repeater, and more
- ✅ Validation - Built-in Laravel validation integration
- 🎨 Blade Components - Pre-built UI components with Reka UI styling
- ⚡ Inertia Integration - Seamless Vue 3 form handling
- 🔄 Real-time Reactivity - Dynamic field visibility, options, and validation
- 📁 File Management - Advanced file upload with preview and validation
- 📝 Rich Content - WYSIWYG editor, Markdown editor, code editor support
Installation
composer require laravilt/forms
Quick Start
use Laravilt\Forms\Components\TextInput; use Laravilt\Forms\Components\Select; $form->schema([ TextInput::make('name') ->label('Full Name') ->required(), Select::make('role') ->label('Role') ->options([ 'admin' => 'Administrator', 'editor' => 'Editor', ]) ->required(), ]);
Generator Commands
# Generate a form class php artisan make:form UserForm # Generate a resource form with CRUD operations php artisan make:form UserForm --resource # Generate a custom field component php artisan make:component CustomField
Documentation
- Complete Documentation - All field types, validation, and examples
- MCP Server Guide - AI agent integration
Field Types
Basic: TextInput, Textarea, NumberField, Select, Checkbox, CheckboxList, Radio, Toggle, ToggleButtons, Hidden
Date & Time: DatePicker, DateTimePicker, TimePicker, DateRangePicker
Advanced: ColorPicker, IconPicker, FileUpload, RichEditor, MarkdownEditor, CodeEditor, TagsInput, KeyValue, Slider, RateInput, PinInput
Dynamic: Repeater, Builder
Configuration
php artisan vendor:publish --tag="laravilt-forms-config" php artisan vendor:publish --tag="laravilt-forms-views" php artisan vendor:publish --tag="laravilt-forms-assets"
Testing
composer test
License
The MIT License (MIT). Please see License File for more information.
