dimanche 27 septembre 2015

Redirect after sending password reset link in Laravel 5.1?

How can set a redirect path after sending the password reset link?

In the ResetsPaswords trait is this code:

switch ($response) {
    case Password::RESET_LINK_SENT:
       return redirect()->back()->with('status', trans($response));

    case Password::INVALID_USER:
       return redirect()->back()->withErrors(['email' => trans($response)]);
}

But I don't want to change the vendor files. Is there another way?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire