In the previous chapter, we started to organize our code into controllers and to reuse code with middleware. I mentioned we’d be seeing authentication and session middleware just as soon as we started working with the database. That time has come.
In this chapter, we’re going to learn about schema migrations. We’ll use these to create a code blueprint of the database structures we want our application to use. Then we’ll start to write and read from these structures by using SQL (or Structured Query Language) queries.
Finally, we’ll take a look at Lucid, which is ...