Skip to content

Commit 2c4dfb0

Browse files
committed
Return raw Dingo API results, fixing #43 and #75
1 parent aa4f63b commit 2c4dfb0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Mpociot/ApiDoc/Generators/DingoGenerator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public function processRoute($route, $bindings = [], $withResponse = true)
4545
*/
4646
public function callRoute($method, $uri, $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
4747
{
48-
return call_user_func_array([app('Dingo\Api\Dispatcher'), strtolower($method)], [$uri]);
48+
$dispatcher = app('Dingo\Api\Dispatcher')->raw();
49+
return call_user_func_array([$dispatcher, strtolower($method)], [$uri]);
4950
}
5051

5152
/**

0 commit comments

Comments
 (0)