Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gizburdt authored Jan 22, 2018
1 parent d685b24 commit 9f54e1d
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,6 @@ You can install the package via composer:
composer require appstract/laravel-response-macros
```

### Provider

Then add the ServiceProvider to your `config/app.php` file:

```
'providers' => [
...
Appstract\ResponseMacros\ResponseMacrosServiceProvider::class,
...
]
```

## Usage

### Message
Expand All @@ -43,7 +29,7 @@ Result
"message": "hello world!"
}
```
With the Http `Status Code:200`
With the Http `Status Code: 200`

### Error
``` php
Expand All @@ -57,7 +43,7 @@ Result
"message": "Something went wrong"
}
```
With the Http `Status Code:400`
With the Http `Status Code: 400`

### Success
``` php
Expand All @@ -71,7 +57,7 @@ Result
"data": {"some": "data"}
}
```
With the Http `Status Code:200`
With the Http `Status Code: 200`

### PDF

Expand Down

0 comments on commit 9f54e1d

Please sign in to comment.