Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method getMiddleware does not exist. #7

Open
iiiyu opened this issue Jan 17, 2018 · 0 comments
Open

Method getMiddleware does not exist. #7

iiiyu opened this issue Jan 17, 2018 · 0 comments

Comments

@iiiyu
Copy link

iiiyu commented Jan 17, 2018

I used

"laravel/lumen-framework": "5.5.*",
"dingo/api": "2.0.0-alpha1"

and route/web.php

$api = app('Dingo\Api\Routing\Router');

$api->version('v1', function ($api) {
    $api->get('/test', [
        'as' => 'index',
        'uses' => 'App\Http\Controllers\Controller@getIndex',
    ]);
});

When i am executing:

php artisan route:list

It returns a message:

In Macroable.php line 96:

  Method getMiddleware does not exist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant