Now that we have our user model created, we can implement the rest of the login system. Again, Laravel includes this as an out-of-the-box feature, so there is only a small amount of configuration for us to do.
Here's an overview of how the login system works:
- The user provides their email and password in a login form. We'll create this form with Vue
- The form is submitted to the
LoginControllerwill then verify the user's credentials against the database
Here's a diagrammatic representation of the login system for further clarity:
Figure 9.1. Login flow