You just bind them to the inputs as shown in the example here: https://inertiajs.com/forms#form-helper
<input type="text" v-model="form.name">
<div v-if="form.errors.name">{{ form.errors.name }}</div>
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
hi developers, how i can update data in my laravel-inertiajs-vuejs app,
i want to add the props value to my inputs,
<script>
import Layout from "../../Layouts/Dashboard.vue"
export default {
layout: Layout,
props: {
settings: Array,
}
}
</script>
<script setup>
import {useForm} from "@inertiajs/inertia-vue3"
let form = useForm({
name: null,
title: null,
description: null,
});
let submit = () => {
form.post('/admin/settings/edit');
}
</script>
My project uses Vue JS with inertia I am not so familiar with inertia, but I used it in the project I have a rough idea of inertia
Here is the code which I used in my project to update the role:
const props = defineProps({
role: Object,
});
const form = useForm({
name: props.role?.name,
image: null,
});
const submit = () => {
Inertia.post(`/role/${props.role.id}`, {
_method: "put",
name: form.name,
});
};
Please or to participate in this conversation.