Skip to content

Commit

Permalink
Added docs for Appends.
Browse files Browse the repository at this point in the history
  • Loading branch information
gent-fella-health committed Nov 5, 2020
1 parent 10fe5cb commit dcc4d69
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Selecting columns dynamically.
* Selecting scopes dynamically.
* Slack formatter.
* Appends.
* A class for making internal API requests.

### Documentation
Expand Down
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Larapi is a package thats offers you to do modern API development in Laravel wit
- Selecting columns dynamically.
- Selecting scopes dynamically.
- Slack formatter.
- Appends.
- A class for making internal API requests.

## Authors
Expand Down
4 changes: 4 additions & 0 deletions docs/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
- [Usage](scopes.md?id=usage)
- [Remove Global Scopes](scopes.md?id=remove-global-scopes)

- Appends
- [Quick start](appends.md?id=appends)
- [Usage](appends.md?id=usage)

- Including relationships
- [Quick start](including_relationships.md?id=including-relationships)
- [Basic usage](including_relationships.md?id=basic-usage)
Expand Down
11 changes: 11 additions & 0 deletions docs/appends.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Appends

With Laravel you can add attributes that do not have a corresponding column in your database.

# Usage

The following example appends `isAdmin` attribute:

```url
{base_url}/users?append[]=isAdmin
```

0 comments on commit dcc4d69

Please sign in to comment.