Search Posts

Redirecting to the previous page on login in Laravel

Authentication is a staple in most applications and each application handles authentication differently. One of the features in authentication that's useful is redirecting the user back to the page they were before logging in, after they logged in.

While there are multiple methods to accomplish such behavior in an authentication system, I want to share one method I've implemented before in some of my projects using middlewares.

. : Read More : .