mardi 12 mars 2019

Redirect to where user was before authentication - but with registration

I can see in the RedirectIfAuthenticated middleware:

return $next($request);

Which lets a user return to where they were once they log in.

Is there a way to achieve similar if the user reaches the auth middleware, is asked to login, but instead registers, once registered how can the user go back to the original page automatically?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire