lumen-route-list icon indicating copy to clipboard operation
lumen-route-list copied to clipboard

Method getMiddleware does not exist.

Open iiiyu opened this issue 6 years ago • 0 comments

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.

iiiyu avatar Jan 17 '18 22:01 iiiyu