File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files 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,21 @@ To make model repository simply run:
5660php artisan make:repository UserRepository --model=User
5761```
5862
63+ ## Use Case
64+
65+ ```
66+ +-------------+ +-------------+ +-------------+
67+ | | | | | |
68+ | |--------------------------------- --------- |
69+ | | +-------------------+ | | | |
70+ | Controllers | | Persist | | Repository | | Models |
71+ | | | Database Query | | | | |
72+ | | +-------------------+ | | | |
73+ | ---------------------------------| --------- |
74+ | | | | | |
75+ +-------------+ +-------------+ +-------------+
76+ ```
77+
5978## Help
6079
6180```
Original file line number Diff line number Diff line change 11{
22 "name" : " pp-spaces/laravel-repository" ,
33 "description" : " Repository Design Pattern implementation for Laravel" ,
4+ "keywords" : [
5+ " pp-spaces" ,
6+ " laravel" ,
7+ " repository" ,
8+ " laravel-repository" ,
9+ " repository-pattern"
10+ ],
411 "type" : " library" ,
512 "license" : " MIT" ,
613 "authors" : [
You can’t perform that action at this time.
0 commit comments