class Token extends Model implements TokenInterface (View source)

Token model.

Traits

SoftDeletes

Token model utilities.

Properties

protected string $table

The table associated with the model.

protected array $fillable

The attributes that are mass assignable.

protected array $dates

The attributes that should be mutated to dates.

Methods

string
getAccessToken()

Get access token.

string|null
getRefreshToken()

Get refresh token.

string
getTokenType()

Get token type.

string
getExpiresAt()

Get expires at.

bool
isExpired()

Determine if a token is expired.

Details

string getAccessToken()

Get access token.

Return Value

string

string|null getRefreshToken()

Get refresh token.

Return Value

string|null

string getTokenType()

Get token type.

Return Value

string

string getExpiresAt()

Get expires at.

Return Value

string Datatime

bool isExpired()

Determine if a token is expired.

Return Value

bool