Target [Dingo\Api\Contract\Routing\Adapter] is not instantiable while building [Dingo\Api\Routing\Router] in Laravel 5.4
- Dominant language
- PHP
- Stars
- 9.4k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
I have installed Dingo api version of
> "dingo/api": "2.0.0-alpha1"
Installed successful but after execute the following artisan command
`php artisan vendor:publish --provider="Dingo\Api\Provider\LaravelServiceProvider"`
but it's not generate the `api.php` file in config folder. after that I'm going to define route file as following
```
$api = app('Dingo\Api\Routing\Router');
$api->version('v1', function ($api) {
$api->group(['middleware' => ['api']], function($api) {
$api->get('test', 'App\Api\Controllers\APIController@test');
});
});
```
Once I hit the url `http://localhost/restful_api/api/test` it's return exception
> (1/1) BindingResolutionException
> Target [Dingo\Api\Contract\Routing\Adapter] is not instantiable while building [Dingo\Api\Routing\Router].
Please help me for the same. I have follow step by` https://github.com/dingo`
Thank you
Contributor guide
Assessment
This issue has not been assessed yet.