OAuthenticatable
interface OAuthenticatable implements Authenticatable
Methods
Get the name of the unique identifier for the user.
Get the name of the password attribute for the user.
Get the token value for the "remember me" session.
Set the token value for the "remember me" session.
Determine if the current API token has a given scope.
Determine if the current API token is missing a given scope.
Create a new personal access token for the user.
Get the access token currently associated with the user.
Get the user provider name.
Details
in
Authenticatable at line 12
string
getAuthIdentifierName()
Get the name of the unique identifier for the user.
in
Authenticatable at line 17
mixed
getAuthIdentifier()
Get the unique identifier for the user.
in
Authenticatable at line 22
string
getAuthPasswordName()
Get the name of the password attribute for the user.
in
Authenticatable at line 27
string|null
getAuthPassword()
Get the password for the user.
in
Authenticatable at line 32
string|null
getRememberToken()
Get the token value for the "remember me" session.
in
Authenticatable at line 37
void
setRememberToken(string|null $value)
Set the token value for the "remember me" session.
in
Authenticatable at line 42
string
getRememberTokenName()
Get the column name for the "remember me" token.
at line 22
MorphMany
oauthApps()
Get all the user's registered OAuth applications.
at line 29
HasMany
tokens()
Get all the access tokens for the user.
at line 34
bool
tokenCan(string $scope)
Determine if the current API token has a given scope.
at line 39
bool
tokenCant(string $scope)
Determine if the current API token is missing a given scope.
at line 46
PersonalAccessTokenResult
createToken(string $name, array $scopes = [])
Create a new personal access token for the user.
at line 51
ScopeAuthorizable|null
currentAccessToken()
Get the access token currently associated with the user.
at line 56
OAuthenticatable
withAccessToken(ScopeAuthorizable|null $accessToken)
Set the current access token for the user.
at line 61
string
getProviderName()
Get the user provider name.