Search by

erag / inertia-forms

eramitgupta

Define Laravel forms in PHP and render them with Inertia.js in Vue, React, or Svelte. Validation, conditional visibility, authorization, and model binding included.

Package info

github.com/eramitgupta/laravel-Inertia-forms

Homepage

Documentation

Language:TypeScript

pkg:composer/erag/inertia-forms

Fund package maintenance!

eramitgupta

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.0.1 2026-09-28 18:34 UTC

This package is auto-updated.

Last update: 2026-09-28 19:17:31 UTC


README

Laravel Inertia Forms

Define Laravel forms in PHP. Render them in Vue, React, or Svelte with one <Form> component.

Write the fields, layout, and validation once in a Laravel class. The same class draws the form in the browser and validates the request on the server, so you never repeat labels, rules, or error handling again.

Documentation ยท Live Demo ยท Sponsor

Features

  • ๐Ÿงฉ Forms in PHP โ€” one class holds the fields, layout, validation, and submit route.
  • ๐Ÿ“ 22 fields โ€” text, textarea, hidden, combobox (searchable, multiple, server search), radio, checkbox, checkbox group, toggle, date and date range, time, color, slider, file upload, tags, key-value, repeater, blocks, link, slug, one-time code, chat composer, and submit buttons, plus headings, text, callouts and separators.
  • โšก Vue, React and Svelte โ€” the same PHP class renders in all three, built on one shared core with no runtime dependencies.
  • โœ… Validation from the fields โ€” required(), email(), options, file types, and more become Laravel rules. Validate with #[Validate].
  • ๐Ÿ‘๏ธ Conditional fields โ€” visibleWhen() and hiddenWhen() work in the browser and in validation.
  • ๐Ÿ” Authorization โ€” authorizedWhen() removes fields, and their rules, for users who should not see them.
  • ๐Ÿ”— Model binding โ€” ->bind($user) fills an edit form from a model or array.
  • ๐Ÿชœ Wizards โ€” multi-step forms with a stepper, each step checked on the server.
  • ๐Ÿ“ Fieldsets and grid layout โ€” group fields, add legends and icons, and use columns.
  • ๐ŸŽฏ Several actions โ€” submit buttons with variants, sizes, icons and intent(), plus disableUntilDirty() for unsaved changes.
  • ๐ŸŽจ 200+ icons, no icon library โ€” icon('rocket'), sent as SVG only when used. Register your own with Icon::register().
  • ๐Ÿงฑ Custom fields โ€” add your own PHP field and its Vue, React or Svelte component.
  • ๐ŸŒ— Accessible and themeable โ€” labels, aria-*, focus handling, dark mode, accent colors, Tailwind CSS 4.
  • ๐Ÿค– Artisan and AI ready โ€” erag:install-inertia-forms, make:form, and Laravel Boost guidelines with a skill for AI agents.

Documentation

https://erag.in/laravel-inertia-forms/

Support

Sponsorship

Laravel Inertia Forms is free and open source. If it saves you time, please consider sponsoring its development:

๐Ÿ’– Sponsor Amit Gupta on GitHub

Sponsors keep the package maintained, documented, and growing.