Webzille

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.

Evils in programming

Adhering to widely accepted best practices within the programming environment is a must within collaborative projects to produce quality and compatible code between different groups of programmers. Lacking the skills or simply rushing through a project and producing lacking code produces a lot of headaches in the future and strained relations between the different groups of programmers.