arrrssssss's avatar

Delete with inertia2, wayfinder, vue

Hi community,

I want to delete a record via inertia2 Form component, and wayfinder controller, but I get stuck here

in some forms like this we have

<script setup>
import { Form } from '@inertiajs/vue3'
import { store } from 'App/Http/Controllers/UserController'
</script>

<template>
    <Form
		v-bind="store().form"
		v-slot="{ errors, processing }"
	>
        <input type="text" name="name" />
        <input type="email" name="email" />
        <button type="submit" :disabled="processing" class="w-full" >Create User</button>
    </Form>
</template>

but for a delete method that have argument of model id how to bind form, or use processing slots to avoid double delete click or something else ...

0 likes
1 reply

Please or to participate in this conversation.