So far, we've been using a simple array as our data store. This isn't very realistic, so let's learn how to set up a database connection. In this episode, we'll discuss environment variables, configuration files, and the query builder.
app/Models
directory. This means an App\Post
namespace should now be App\Models\Post
.