We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
refreshToken
Token
1 parent 66eaa66 commit b24c646Copy full SHA for b24c646
src/Token.php
@@ -57,6 +57,16 @@ public function client()
57
return $this->belongsTo(Passport::clientModel());
58
}
59
60
+ /**
61
+ * Get the refresh token associated with the token.
62
+ *
63
+ * @return \Illuminate\Database\Eloquent\Relations\HasOne
64
+ */
65
+ public function refreshToken()
66
+ {
67
+ return $this->hasOne(Passport::refreshTokenModel(), 'access_token_id');
68
+ }
69
+
70
/**
71
* Get the user that the token belongs to.
72
*
0 commit comments