Dingo配置路由,终端里打印路由一直出现这个问题。
[Symfony\Component\Debug\Exception\FatalThrowableError]
Call to undefined method Illuminate\Routing\Route::getUri()*
这是我的配置的路由
$api = app('Dingo\Api\Routing\Router');
$api->version('v1',function($api){
$api->group(['namespace'=>'App\Api\Controllers'],function($api){
$api->get('lessons','LessonsController@index');
});
});
路径信息
app\Api\Controllers\LessonsController.php
希望能解答,卡在这里了。一直找不到答案。