Download the PHP package digit7s/inertia-form without Composer
On this page you can find all versions of the php package digit7s/inertia-form. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download digit7s/inertia-form
More information about digit7s/inertia-form
Files in digit7s/inertia-form
Package inertia-form
Short Description A backend-driven form builder for Inertia.js and Vue 3.
License MIT
Homepage https://github.com/Digit7s/inertia-form
Informations about the package inertia-form
Inertia Form Builder for Laravel
A fluent, backend-driven form builder for Laravel and Inertia.js (Vue 3). Define your forms, layouts, and validation logic entirely in PHP and render them dynamically in your Vue frontend with high-quality components.
Requirements
- PHP: 8.2+
- Laravel: 11.0+ / 12.0+
- Inertia.js: Vue 3 adapter
- Tailwind CSS: (Recommended for default styling)
Installation
1. Backend (PHP)
Install the package via Composer:
2. Frontend (Vue 3)
You can publish the Vue components directly into your project using the Laravel Service Provider:
Setup & Configuration
Registering Components
Import and register the InertiaForm component in your app.js or directly within your Vue pages.
Global Registration (app.js):
Basic Usage
1. Generate a Form Class
Use the Artisan command to scaffold a new form:
2. Define the Schema
In your newly created form class (app/Forms/ProfileForm.php), define the fields and layout:
3. Return from Controller
Pass the form payload to your Inertia page:
4. Render in Vue
Use the provided <InertiaForm /> component to render the form:
Available Fields
TextInput(text, email, password, etc.)Select(searchable, relationship-bound)DatePicker/TimePicker/DateTimePickerTextareaCheckboxListGrid(Layout)
Documentation
For more detailed information on fields, layouts, and advanced features, please refer to the documentation:
- Fields & Options
- Layouts & Grids
- Handling Redirects
License
The MIT License (MIT). Please see License File for more information.
All versions of inertia-form with dependencies
illuminate/support Version ^11.0|^12.0
illuminate/console Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0