Skip to content

Commit 711b8d2

Browse files
committed
Update README.md, add use case diagram
1 parent 47b6fa8 commit 711b8d2

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
- [What is the Repository Design Pattern?](#what-is-the-repository-design-pattern)
66
- [Usage](#usage)
7+
- [Installation](#installation)
8+
- [Make a repository](#make-a-repository)
9+
- [Use Case](#use-case)
10+
- [Help](#help)
711

812
## What is the Repository Design Pattern
913

@@ -56,6 +60,28 @@ To make model repository simply run:
5660
php artisan make:repository UserRepository --model=User
5761
```
5862

63+
## Use Case
64+
65+
```
66+
+--------------------------------------------------------------------------+
67+
| +-------------+ +-------------+ +-------------+ +-------------+ |
68+
| | | | Index | | | | | |
69+
| | | +-------------+ | | | | |
70+
| | | +-------------+ | | | | |
71+
| | | | Show | | | | | |
72+
| | | +-------------+ | | | | |
73+
| | | +-------------+ | | | | |
74+
| | Controller | | Store | | Repository | | Model | |
75+
| | | +-------------+ | | | | |
76+
| | | +-------------+ | | | | |
77+
| | | | Update | | | | | |
78+
| | | +-------------+ | | | | |
79+
| | | +-------------+ | | | | |
80+
| | | | Delete | | | | | |
81+
| +-------------+ +-------------+ +-------------+ +-------------+ |
82+
+--------------------------------------------------------------------------+
83+
```
84+
5985
## Help
6086

6187
```

0 commit comments

Comments
 (0)