File tree 1 file changed +18
-2
lines changed
1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
A clean way to present your model attributes without putting them in the wrong file.
8
8
9
+
10
+ - [ Laravel Presenter] ( #laravel-presenter )
11
+ - [ Installation] ( #installation )
12
+ - [ Usage] ( #usage )
13
+ - [ Model Implementation] ( #model-implementation )
14
+ - [ Create New Model Presenter class] ( #create-new-model-presenter-class )
15
+ - [ Using the ` Presenter ` Generated Class] ( #using-the-presenter-generated-class )
16
+ - [ Example] ( #example )
17
+ - [ Adding Another Presenter Type] ( #adding-another-presenter-type )
18
+ - [ Testing] ( #testing )
19
+ - [ Changelog] ( #changelog )
20
+ - [ Contributing] ( #contributing )
21
+ - [ Security Vulnerabilities] ( #security-vulnerabilities )
22
+ - [ Credits] ( #credits )
23
+ - [ License] ( #license )
24
+
9
25
## Installation
10
26
11
27
You can install the package via composer:
@@ -155,8 +171,8 @@ $user->present()->fullName
155
171
```
156
172
Your application will show the full name from the method you added.
157
173
158
- ## Adding Another Presenter Type:
159
- Like I said above, by default the type will be ` deafult ` but, you can add more types as you need.
174
+ ## Adding Another Presenter Type
175
+ Like I said above, by default the type will be ` default ` but, you can add more types as you need.
160
176
161
177
Here is an example:
162
178
You can’t perform that action at this time.
0 commit comments