setPath() on raw Internal Requests
Open
- 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
Assessment
This issue has not been assessed yet.