承接 laravilt/forms 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

laravilt/forms

最新稳定版本:1.0.6

Composer 安装命令:

composer require 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.

README 文档

README

forms

Laravilt Forms

Latest Stable Version License Downloads Dependabot Updates PHP Code Styling Tests

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

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.

统计信息

  • 总下载量: 379
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 4
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-12