adminui/inertia-routes
AdminUI Inertia Routes shares your Laravel named routes with Inertia.js so you can call route() directly inside Vue or React components. A lightweight middleware and Blade directive keep frontend URLs in sync with backend routes, avoiding hardcoded links and broken navigation.
onSuccess now receives the page, is awaited, and runs before resetOnSuccess clears the form. That unblocks UX such as "toast the submitted value," "seed an optimistic UI," or "chain a follow-up request from the success handler" — all previously fragile.onSuccess wrapper stacking on every submit (repeated resets, repeated callbacks), and caller-supplied option objects being mutated. These produce "it only breaks sometimes" QA tickets — worth checking against any open bug reports before we build workarounds.onSuccess now composes (configured first, then per-call) instead of replacing, any internal wrapper that relied on override-to-suppress must be re-validated. That directly informs keep-wrapper vs. vendor-the-pattern.items vs. items_count) matters for repeater-style builders where names share stems.Adopt when:
form.post(), visitOptions, autoHydrate, data as a function — is front-end JavaScript, so the value is concentrated in Laravel + Inertia-style stacks, not server-side PHP alone).onError, preserveScroll — that otherwise get copy-pasted per component.Look elsewhere or proceed with caution when:
To executives: A low-risk dependency update to our Laravel form-handling layer — bug fixes only, no breaking changes, no migration cost. It eliminates a recurring class of front-end defects (form options bleeding between submissions, resets firing repeatedly, success callbacks firing after the data is already cleared) that surface as inconsistent form behavior in QA and support. The package is versioned, actively maintained, and improving incrementally.
To engineering: v4.5.6 is a correctness release with three behavior changes to note. (1) Callback composition is now additive: visitOptions.onSuccess from the composable runs first, then the per-call handler — code relying on replacement must be updated. (2) onSuccess now receives page, is awaited, and runs before resetOnSuccess clears state, so success handlers can read submitted data. (3) Per-call options are isolated and caller-supplied option objects are no longer mutated. Also fixed: reset no longer stacks wrapper callbacks, reset snapshots no longer share nested arrays/objects with the live form, reset falls back to form defaults when no hydrated snapshot exists, and array defaults resolve correctly for prefix-colliding names. Action: bump the patch, then re-run tests that assert callback overwrite or depend on caller option-object mutation — those assumptions are now invalid. No API changes required.
How can I help you explore Laravel packages today?