使用正确的用户名和密码登录,但重定向到' /',始终返回' Unauthorized'我该怎么办?
routes.php
$app->get('auth/login', 'Auth\AuthenticationController@getLogin');
$app->post('auth/login', 'Auth\AuthenticationController@login');
$app->post('auth/register', 'Auth\AuthenticationController@register');
$app->group(['middleware' => 'auth'], function () use ($app) {
$app->get('/', 'ExampleController@index');
});