Hi not much to help with but I would highly recommend InertiaJs if your using vue Frontend and PHP Backend https://inertiajs.com/who-is-it-for
Redirect after login
Hello,
I have a Laravel back and a VueJS front with the vue router.
After login, I want to redirect to a specific route.
methods: {
login() {
this.$store.dispatch('auth/login', this.user)
this.$router.push('/students')
}
But it doesn't redirect to the /students route.
I have tried with async and await, but it doesn't work better.
When I'm logged in, it remains on the loggin page (I'm really logged in, it's just the redirection which don't work). And when I click once more on the Log in button, this time it redirects to the /students route.
Do you have any idea ? Do you need other information to help me ?
Thanks a lot ;).
Vincent
better show some login codes. My codes works totally fine , but you still cannot just copy & paste.
Please or to participate in this conversation.