承接 laravilt/schemas 相关项目开发

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

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

laravilt/schemas

最新稳定版本:1.0.5

Composer 安装命令:

composer require laravilt/schemas

包简介

Complete schema system with sections, tabs, grids, and layout components. Organize form fields and information displays with powerful layout components supporting collapsible sections, responsive grids, and nested schemas.

README 文档

README

schemas

Laravilt Schemas

Latest Stable Version License Downloads Dependabot Updates PHP Code Styling Tests

Complete schema system with sections, tabs, grids, and layout components for Laravilt. Organize form fields and information displays with powerful layout components.

Features

  • 📦 8 Layout Components - Section, Tabs, Grid, Fieldset, Split, Wizard, Step, Columns
  • 🎨 Section Features - Collapsible, icons, headers, footers, aside layout
  • 📑 Tab Features - Multiple tabs, icons, badges, lazy loading
  • 📐 Grid Features - 1-12 column layouts, responsive spans
  • Reactivity - Conditional visibility, dynamic fields, state management
  • 🔄 Nested Schemas - Support for deeply nested layouts

Layout Components

Component Description
Section Collapsible sections with headings and icons
Tabs Tabbed interfaces with badges
Grid Responsive multi-column layouts
Fieldset HTML fieldset grouping
Split Two-column responsive layouts
Wizard Multi-step form workflows
Step Individual wizard steps
Columns Simple two-column wrapper

Quick Examples

Section with Columns

use Laravilt\Schemas\Components\Section;
use Laravilt\Forms\Components\TextInput;

Section::make('Product Information')
    ->description('Basic product details')
    ->icon('Package')
    ->columns(2)
    ->collapsible()
    ->schema([
        TextInput::make('name')->required(),
        TextInput::make('sku')->required(),
        TextInput::make('price')->numeric()->prefix('$'),
        TextInput::make('stock')->numeric(),
    ]);

Tabs

use Laravilt\Schemas\Components\Tabs;
use Laravilt\Schemas\Components\Tab;

Tabs::make('product_tabs')
    ->tabs([
        Tab::make('details')
            ->label('Details')
            ->icon('FileText')
            ->schema([...]),

        Tab::make('pricing')
            ->label('Pricing')
            ->icon('DollarSign')
            ->badge(fn ($record) => $record?->has_discount ? 'Sale' : null)
            ->schema([...]),
    ]);

Wizard

use Laravilt\Schemas\Components\Wizard;
use Laravilt\Schemas\Components\Step;

Wizard::make()
    ->steps([
        Step::make('account')
            ->label('Account')
            ->icon('User')
            ->schema([...]),

        Step::make('profile')
            ->label('Profile')
            ->icon('Settings')
            ->schema([...]),
    ])
    ->skippable();

Installation

composer require laravilt/schemas

Generator Command

php artisan make:schema ProductSchema

Documentation

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

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