I'm trying to find a way to add a status message to the default ResetPasswordController redirect, but I can't seem to figure it out. I've tried replacing the default
protected $redirectTo = '/home';
with
public function redirectTo() {
return redirect()->home()->with('status', 'Your password has been changed successfully!');
}
but I was met with an error. I've read on other posts that the default adds a status message already, but I have an area to show the status and nothing pops up. (Any other status the project has, it shows fine)
@if (session('status'))
<div class="form-group">
<div class="alert alert-success alert-dismissible">
<a href="#" class="close" data-dismiss="alert" aria-label="close"><i class="fa fa-times" aria-hidden="true"></i></a>
{{ session('status') }}
</div>
</div>
@endif
I haven't found any helpful information on this in the documentation either, has anyone found a solution to this?