Webzille

Polymorphism in Relational Databases

Polymorphism in applications utilizing relational databases can open doors to better data organization, more efficient querying and reduction in unnecessary redundancy. It's a powerful design concept that allows code re-usability and promotes flexibility within the application.

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.