It's better if we instead inject our
User object through the controller's constructor. Let's tackle that in this lesson, and learn about some alternative ways of validating a user.
Published on Nov 11th, 2015.
Understand.io is used by hundreds of Laravel developers to find and fix errors.
Sign up for a free 14-day trial now.