File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed
Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -15,20 +15,6 @@ You can install the package via composer:
1515composer require appstract/laravel-response-macros
1616```
1717
18- ### Provider
19-
20- Then add the ServiceProvider to your ` config/app.php ` file:
21-
22- ```
23- 'providers' => [
24- ...
25-
26- Appstract\ResponseMacros\ResponseMacrosServiceProvider::class,
27-
28- ...
29- ]
30- ```
31-
3218## Usage
3319
3420### Message
4329 "message" : " hello world!"
4430}
4531```
46- With the Http ` Status Code:200 `
32+ With the Http ` Status Code: 200 `
4733
4834### Error
4935``` php
5743 "message" : " Something went wrong"
5844}
5945```
60- With the Http ` Status Code:400 `
46+ With the Http ` Status Code: 400 `
6147
6248### Success
6349``` php
7157 "data" : {"some" : " data" }
7258}
7359```
74- With the Http ` Status Code:200 `
60+ With the Http ` Status Code: 200 `
7561
7662### PDF
7763
You can’t perform that action at this time.
0 commit comments