inertiajs

How to send information from the vue.js file to the controller like an id? Laravel - Inertia-vue

冷暖自知 提交于 2021-01-29 09:59:54
问题 I'm trying to open a page from a button, but I need to send the id of the item where the button is in. For context this is a discussion forum page, in the users dash they are shown the forums they can comment on and there is a button on the bottom of each, what I need to send is that forums id, so that when they click on the button it takes them to the correct forum view. How can I do this? I'm trying different ways <el-button type="primary" @click="submit(f.id)"> Answer </el-button> submit(