[Vuejs]-How to save category in laravel 5.7 with vue.js

0πŸ‘

βœ…

  1. Remove @click from submit buttom.
  2. Remove route… from form action and set it #
  3. Add @submit="addCategory()" to the form
  4. In the axios.post samply add the route without route function.

Update:
If you want to prevent page refreshing, add .prevent after @submit.

Leave a comment