Intro to Models3:14 with Jonathan Barrios
Now that we’ve covered Routing, Controllers, and Views, let’s talk about the final element: Models. Models are the direct connection between a database and the Laravel application. In a perfect world, Models will directly mirror the structure of your database. That is to say, each database table corresponds to a model-- the user model interacts with the user table, and so on. Let’s look at how we can connect our Laravel application to the database.
You need to sign up for Treehouse in order to download course files.Sign up