File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 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:
5660php 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```
You can’t perform that action at this time.
0 commit comments