I'm using Lumen 5.4 with the latest Dingo.
I have followed the installation procedure and also registered the class to bootstrap/app.php
$app->register(Dingo\Api\Provider\LumenServiceProvider::class);
But when i set route below it returns error
BindingResolutionException Target [DingoApi\ContractRoutingAdapter] is not instantiable while building [DingoApiRoutingRouter].
$api = app('Dingo\Api\Routing\Router');
$api->version('v1', function ($api) {
$api->get('test', function () {
return 'It is ok';
});
});
Thanks.
Same issue for me in Laravel 5.4
Same issue in Lumen 5.8 and DingoApi-2.0.0-beta1, how to solve it? Thank you!
Most helpful comment
Same issue for me in Laravel 5.4