Skip to content
Advertisement

How to keep session after storing data in Laravel 8?

I’m new to Laravel. I have created custom Change Password in Laravel 8 using Livewire. But, after succeeded in updating the user password, my session is expired and redirected to login page. So, the question is how to keep the session alive and redirect to the current page?

Here’s my code:

ChangeUserPassword.php

JavaScript

change-user-password.blade.php

JavaScript

Any suggestion would really help. Thanks.

Advertisement

Answer

Authenticate the user again after updating the password

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement