inertia-studio/laravel-adapter
最新稳定版本:v0.2.8
Composer 安装命令:
composer require inertia-studio/laravel-adapter
包简介
Server-driven admin panels for Laravel + Inertia.js. Define forms, tables, and pages in PHP — render with React, Vue, or Svelte.
README 文档
README
Server-driven admin panels for Laravel + Inertia.js. Define forms, tables, and pages in PHP — render with React, Vue, or Svelte.
Installation
composer require inertia-studio/laravel-adapter npm install @inertia-studio/ui php artisan studio:install
Quick Example
class Users extends Module { protected static string $model = User::class; public static function form(Form $form): Form { return $form->schema([ Layout::section('User Information')->columns(2)->schema([ Field::text('name')->required(), Field::email('email')->required()->unique(), Field::select('role')->options([ 'admin' => 'Admin', 'editor' => 'Editor', ]), ]), ]); } public static function table(Table $table): Table { return $table->columns([ Column::text('name')->searchable()->sortable(), Column::badge('role')->colors(['admin' => 'danger']), Column::date('created_at')->label('Joined'), ]); } }
What's Included
PHP Builders — 30 field types, 8 column types, 5 filter types, 6 detail types, 24 page primitives
Laravel Integration — Auto-discovery, Eloquent query building, policy authorization, file uploads, global search, 7 Artisan commands
Panel System — Multi-panel support, 10 theme presets, dark mode, navigation groups with badges
Page Builder — Compose dashboards, settings pages, and analytics from PHP using PageSchema primitives with closure-based form/action handlers
Requirements
- PHP 8.4+
- Laravel 12 or 13
- Inertia.js v3
Documentation
License
MIT
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-05