$api->group(['middleware' => 'jwt.auth'], function($api){
$api->get('lessons', 'LessonsController@index');
$api->get('lessons/{id}', 'LessonsController@show');//
});
$api->group(['middleware' => 'jwt.refresh'], function($api){
$api->get('user/me', 'AuthController@getAuthenticatedUser');
$api->get('lessons', 'LessonsController@index');
$api->get('lessons/{id}', 'LessonsController@show');
});
这两个路由都可以访问?我该用那一个,还有就是token过期后是怎么刷新的?