Appearance
TwitchUser
php
class Zairakai\LaravelTwitch\Models\TwitchUser extends ModelSource: src/Models/TwitchUser.php
Methods
findByLogin()
php
public static function findByLogin(string $login): selfFind user by login (username).
findByTwitchId()
php
public static function findByTwitchId(string $twitchId): selfFind user by Twitch ID.
hasScope()
php
public function hasScope(string $scope): boolCheck if user has specific scope.
isTokenValid()
php
public function isTokenValid(): boolCheck if the access token is still valid.
updateTokens()
php
public function updateTokens(array $tokenData): selfUpdate token information.
casts()
php
protected function casts(): arrayReturns array<string, string>