Creating the Laravel App0:27
Here's another one. Now, we're not actually going to build the UI. This will be a command-line-only application. And it should be fun. So let's get started. Let's create a Laravel app. We'll call it InStockSeries. And then view this in my editor. Now, before we write any code, let's begin with a bit of brainstorming. All right, now, if we think about it, what is the general purpose for this application?
Defining the App Purpose0:43
Now, before we write any code, let's begin with a bit of brainstorming. All right, now, if we think about it, what is the general purpose for this application? Let's write it out and see if we can spot any important keywords and nouns. Now, you might say, if I paste this in, here's the general purpose. We want to build a site that tracks the availability and price of certain products across multiple retailers. So, again, using that example of a Nintendo Switch, we might want to know, well, is it available at Best Buy? What about Amazon? What about Walmart?
Identifying Models and Tables1:41
What else? Maybe in stock. That's another one. Yeah, these seem like the keywords to me. We're tracking the stock and availability, so those are sort of connected. We're tracking the stock and availability of products from retailers. So now, if we work this out and we think in terms of our tables and potential Eloquent models, yeah, we'll probably have a Product, and again, an example of this might be the Nintendo Switch that's currently out of stock at the time of this recording, so like a neon Nintendo Switch.