on-internet
← Community

Laravel Vue Inertia delete confirm returning modal with "1" value

Stack Overflow ·

I am having trouble with the delete function for my table items. It keeps returning a modal with a value of 1. I have tried many possible solutions found online, but the issue persists. Controller: public function destroy($id) { $articleCategories = ArticleCategory::findOrFail($id); $articleCategories->delete(); return redirect()->route('article_categories')->with('message', 'Article category deleted successfully.'); } Vue: <script> import Title from "../Layouts/Components/Title.vue"; import PaginationLinks from "../../components/PaginationLinks.vue"; import TableEditButton from "../../compone

Comments

Sign in or sign up to comment and upvote.

No comments yet.