Table of Contents
Properties
-
$casts
: mixed
-
$fillable
: mixed
Methods
-
bootHasNanoPublicId()
: mixed
-
getAccessToken()
: string|null
-
getDiscogsData()
: array<string|int, mixed>
-
getLastFmData()
: array<string|int, mixed>
-
getMeta()
: mixed
-
getProviderUserId()
: string|null
-
getProviderUsername()
: string|null
-
getRefreshToken()
: string|null
-
getRouteKeyName()
: string
-
getSessionKey()
: string|null
-
getSpotifyData()
: array<string|int, mixed>
-
hasValidCredentials()
: bool
-
isExpired()
: bool
-
isValid()
: bool
-
mergeMeta()
: void
-
scopeForProvider()
: mixed
-
scopeValid()
: mixed
-
setMeta()
: void
-
user()
: BelongsTo
$casts
protected
mixed
$casts
= ['expires_at' => 'datetime', 'meta' => 'array']
$fillable
protected
mixed
$fillable
= ['user_id', 'provider', 'expires_at', 'meta']
bootHasNanoPublicId()
public
static bootHasNanoPublicId() : mixed
getAccessToken()
public
getAccessToken() : string|null
Return values
string|null
getDiscogsData()
public
getDiscogsData() : array<string|int, mixed>
Return values
array<string|int, mixed>
getLastFmData()
public
getLastFmData() : array<string|int, mixed>
Return values
array<string|int, mixed>
public
getMeta(string $key[, mixed $default = null ]) : mixed
Parameters
-
$key
: string
-
-
$default
: mixed
= null
-
getProviderUserId()
public
getProviderUserId() : string|null
Return values
string|null
getProviderUsername()
public
getProviderUsername() : string|null
Return values
string|null
getRefreshToken()
public
getRefreshToken() : string|null
Return values
string|null
getRouteKeyName()
public
getRouteKeyName() : string
getSessionKey()
public
getSessionKey() : string|null
Return values
string|null
getSpotifyData()
public
getSpotifyData() : array<string|int, mixed>
Return values
array<string|int, mixed>
hasValidCredentials()
public
hasValidCredentials() : bool
isExpired()
public
isExpired() : bool
isValid()
public
isValid() : bool
public
mergeMeta(array<string|int, mixed> $data) : void
Parameters
-
$data
: array<string|int, mixed>
-
scopeForProvider()
public
scopeForProvider(mixed $query, string $provider) : mixed
Parameters
-
$query
: mixed
-
-
$provider
: string
-
scopeValid()
public
scopeValid(mixed $query) : mixed
Parameters
-
$query
: mixed
-
public
setMeta(string $key, mixed $value) : void
Parameters
-
$key
: string
-
-
$value
: mixed
-
user()
public
user() : BelongsTo