arrrssssss started a new conversation+100 XP
4mos ago
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 ...
arrrssssss liked a comment+100 XP
5mos ago