Skip to content

Commit 367f5c5

Browse files
committed
Merge pull request #102 from tplaner/master
Fixed typo.
2 parents 1fff9bf + 9d404af commit 367f5c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Libraries and Models are very easy to use thanks to the Laravel auto-loader. To
4848

4949
We've all head the mantra: "controllers should be thin!" But, how do we apply that in real life? It's possible that part of the problem is the word "model". What does it even mean? Is it even a useful term? Many associate "model" with "database", which leads to having very bloated controllers, with light models that access the database. Let's explore some alternatives.
5050

51-
What if we just totally scrapped the "models" directory? Let's name it something more useful. In fact, let's just give it the same as our application. Perhaps are our satellite tracking site is named "Trackler", so let's create a "trackler" directory within the application folder.
51+
What if we just totally scrapped the "models" directory? Let's name it something more useful. In fact, let's just give it the same as our application. Perhaps our satellite tracking site is named "Trackler", so let's create a "trackler" directory within the application folder.
5252

5353
Great! Next, let's break our classes into "entities", "services", and "repositories". So, we'll create each of those three directories within our "trackler" folder. Let's explore each one:
5454

0 commit comments

Comments
 (0)