Skip to content

TwitchUser ​

php
class Zairakai\LaravelTwitch\Models\TwitchUser extends Model

Source: src/Models/TwitchUser.php

Methods ​

findByLogin() ​

php
public static function findByLogin(string $login): self

Find user by login (username).

findByTwitchId() ​

php
public static function findByTwitchId(string $twitchId): self

Find user by Twitch ID.

hasScope() ​

php
public function hasScope(string $scope): bool

Check if user has specific scope.

isTokenValid() ​

php
public function isTokenValid(): bool

Check if the access token is still valid.

updateTokens() ​

php
public function updateTokens(array $tokenData): self

Update token information.

casts() ​

php
protected function casts(): array

Returns array<string, string>

Documentation of 4.1.4 , built from a03e949 on 4.1.4 by pipeline #2949087255 on 2026-10-11.