dingo / dingo/api

setPath() on raw Internal Requests

Open
#1,223 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
9.4k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

I'm able to set the pagination path using setPath() as follows:

```
$dispatcher = app('Dingo\Api\Dispatcher');
$results = $dispatcher->get('users');
$results->setPath('desired_path');
```

Is there a way to still use setPath() before getting the raw response object? The following doesn't work (as expected):

```
$dispatcher = app('Dingo\Api\Dispatcher');
$results = $dispatcher->raw()->get('users');
$results->setPath('desired_path');
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.