Skip to content

Commit

Permalink
GITBOOK-4: change request with no subject merged in GitBook
Browse files Browse the repository at this point in the history
  • Loading branch information
d8vjork authored and gitbook-bot committed Apr 22, 2024
1 parent 1b5954b commit f754240
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ class FilmBuilder extends Builder implements ViewableBuilder
}
```

#### Disable viewable per request

If the **viewable is implemented at the model or query builder** level **this will get called** whenever you use Apiable, you can disable it per request using the following method:

```php
JsonApiResponse::from(Film::where('title', 'LIKE', 'The%'))
->conditionallyLoadResults(false);
```

#### Customise pagination method

In case you want to customise the pagination used you can actually use the `paginateUsing` method:
Expand Down

0 comments on commit f754240

Please sign in to comment.