i have a form which i am using axios to submit a form in my laravel app like below :
<script>
export default {
props: [ 'route' ],
data: function () {
return {
mobile: ''
}
},
methods: {
submitMobile(){
axios.post('/customer/send-sms', {
mobile: this.mobile
})
.then(response => {
console.log(response.data)
})
.catch(function (error) {
console.log(error)
});
}
},
}
</script>
now i know it may not possible but after submiting the form if the user mobile is valid and all other conditions that i check i want to redirect user to the page that enters the the verify code