我想为Laravel实现Codecast JWT密钥 https://github.com/codecasts/laravel-jwt
我按照说明一步一步,但抛出异常
Method issue() does not exist.
任何想法有什么不对?
我的代码:
function login(Guard $auth){
$user2 = User::find(1);
$auth->login($user2);
$token = $auth->issue();
return $token;
}