for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mpociot\ApiDoc\Generators;
class DingoGenerator extends AbstractGenerator
{
/**
* Prepares / Disables route middlewares.
*
* @param bool $disable
* @return void
*/
public function prepareMiddleware($disable = true)
// Not needed by Dingo
return false;
}
* {@inheritdoc}
public function callRoute($method, $uri, $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
$dispatcher = app('Dingo\Api\Dispatcher')->raw();
collect($server)->map(function ($key, $value) use ($dispatcher) {
$dispatcher->header($value, $key);
});
return call_user_func_array([$dispatcher, strtolower($method)], [$uri]);
public function getDomain($route)
return $route->domain();
public function getUri($route)
return $route->uri();
public function getMethods($route)
return array_diff($route->getMethods(), ['HEAD']);