$scopes * @property bool $revoked * @property Carbon|null $created_at * @property Carbon|null $updated_at * @property Carbon|null $expires_at * @property-read Client|null $client * @property-read User|null $user */ class Token extends PassportToken { /** @use HasFactory */ use HasFactory; /** * Get the client that the token belongs to. * * @return BelongsTo */ // @phpstan-ignore method.childReturnType public function client(): BelongsTo { return $this->belongsTo(Client::class, 'client_id', 'id'); } /** * Get the user that the token belongs to. * * @deprecated Will be removed in a future Laravel version. * * @return BelongsTo */ // @phpstan-ignore method.childReturnType public function user(): BelongsTo { return $this->belongsTo(User::class, 'user_id'); } }