Skip to content

Releases

v0.0.3

Choose a tag to compare

@eramitgupta eramitgupta released this 13 Nov 19:40

What's changed

Translations 🌍

Every form can now be shown in any language, on the server and in the browser.

Frontend

  • New setTranslations() and TranslationValue in @erag/inertia-forms-react, -vue and -svelte (0.0.2).
  • 130 keys cover buttons, placeholders, empty states, screen reader labels, file sizes, wizard text and calendar names.
  • :name tokens work like Laravel's. A value can also be a function, for plurals or number formatting.
  • Calling setTranslations() again switches open forms to the new language right away.

Laravel

  • New publishable language file: php artisan vendor:publish --tag=inertia-forms-lang.
  • Fields without a label() take their name from your app's validation.attributes translations.
  • Built-in button text (wizard Continue / Back, Composer Send, add buttons) is now null in the schema unless you set it, so the frontend translation is used.

Other

  • New Laravel Boost skill: inertia-forms-translations.
  • npm packages are now published from GitHub Actions with Trusted Publishing.

Upgrade notes

  • Blocks, Repeater, KeyValue and Composer labels, plus the wizard nextLabel / backLabel, are null when you don't set them.
  • The KeyValue delete button label changed from "Remove row N" to "Delete row N".

Full Changelog: v0.0.2...v0.0.3

v0.0.2

Choose a tag to compare

@eramitgupta eramitgupta released this 02 Oct 17:20
e4321cc

What's changed

Simpler install

  • php artisan erag:install-inertia-forms now publishes only config/inertia-forms.php. It no longer copies a stub into your app.
  • php artisan make:form always uses the stub inside the package. You don't need to publish anything first.
  • The install command lists the Vue, React and Svelte packages to choose from, plus a link to the docs.

Icons

  • The built-in icon set now lives in the Erag\InertiaForms\Support\IconSetEnum enum instead of a JSON file. icon('rocket') works exactly as before.
  • New helpers: IconSetEnum::paths() and IconSetEnum::grouped(). You can also write ->icon(IconSetEnum::Rocket->value).

Other

  • README now links the React, Vue and Svelte demo apps.

Upgrading

  • The inertia-forms-stubs publish tag has been removed. If you published stubs/inertia-form.stub before, make:form now ignores it, and you can delete it.
  • No frontend change: the npm packages stay at 0.0.1.

Full Changelog: v0.0.1...v0.0.2

v0.0.1

Choose a tag to compare

@eramitgupta eramitgupta released this 28 Sep 18:52

The first release of Laravel Inertia Forms: define Laravel forms in PHP and render them in Vue, React or Svelte with one <Form> component.

Highlights

  • 🧩 Forms in PHP: fields, layout, validation and the submit route in one class
  • 📝 22 fields: text, combobox with server search, date ranges, time, color, slider, file upload, tags, key-value, repeater, blocks, link, slug, one-time code, chat composer and more
  • ⚡ Vue, React and Svelte: one shared core, no runtime dependencies
  • ✅ Validation from the fields with #[Validate], plus conditional fields and authorization
  • 🪜 Wizards with server-side step checks
  • 🎨 200+ icons, no icon library
  • 🌗 Dark mode, accessible markup, Tailwind CSS 4
  • 🤖 Laravel Boost guidelines and skill for AI agents

Install

composer require erag/inertia-forms
php artisan erag:install-inertia-forms

Then install the package for your frontend: @erag/inertia-forms-vue, @erag/inertia-forms-react or @erag/inertia-forms-svelte.

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