Repository navigation
Releases
Releases · eramitgupta/laravel-Inertia-forms
v0.0.3
What's changed
Translations 🌍
Every form can now be shown in any language, on the server and in the browser.
Frontend
- New
setTranslations()andTranslationValuein@erag/inertia-forms-react,-vueand-svelte(0.0.2). - 130 keys cover buttons, placeholders, empty states, screen reader labels, file sizes, wizard text and calendar names.
:nametokens 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'svalidation.attributestranslations. - Built-in button text (wizard Continue / Back, Composer Send, add buttons) is now
nullin 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,KeyValueandComposerlabels, plus the wizardnextLabel/backLabel, arenullwhen 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
What's changed
Simpler install
php artisan erag:install-inertia-formsnow publishes onlyconfig/inertia-forms.php. It no longer copies a stub into your app.php artisan make:formalways 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\IconSetEnumenum instead of a JSON file.icon('rocket')works exactly as before. - New helpers:
IconSetEnum::paths()andIconSetEnum::grouped(). You can also write->icon(IconSetEnum::Rocket->value).
Other
- README now links the React, Vue and Svelte demo apps.
Upgrading
- The
inertia-forms-stubspublish tag has been removed. If you publishedstubs/inertia-form.stubbefore,make:formnow 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
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.