packy
287
4
Vue

Vue login vs standard form

Posted 5 months ago by packy

What are the downsides to using a Vue component with an Axios call to login? I have seen a few forum comments just hating on using Vue to do this and not just the "out of the box" solution. In my opinion I always use Vue for any form since I think its a better user experience to not refresh the page and provide error / success / loading messages from what the API returns. Even this site seems to use a modal with Vue to log you in so wasn't sure if there was any real benefits to using the Laravel views other than its just already made considering you use the same controllers and pass a csrf token with your request using Vue

References:

https://laracasts.com/discuss/channels/vue/vuejs-and-laravel-authentication https://laracasts.com/discuss/channels/vue/laravel-vuejs-auth?page=1

Please sign in or create an account to participate in this conversation.