/home/techb158/ileadtechnology.com/vendor/laravel/passport/src
NameSizeModeActions
Bridge/-0755rm
Console/-0755rm
Events/-0755rm
Exceptions/-0755rm
Guards/-0755rm
Http/-0755rm
ApiTokenCookieFactory.php21180644editdlrm
AuthCode.php15250644editdlrm
Client.php41790644editdlrm
ClientRepository.php56490644editdlrm
HasApiTokens.php19220644editdlrm
Passport.php159780644editdlrm
PassportServiceProvider.php95320644editdlrm
PassportUserProvider.php18530644editdlrm
PersonalAccessClient.php8680644editdlrm
PersonalAccessTokenFactory.php37140644editdlrm
PersonalAccessTokenResult.php11750644editdlrm
RefreshToken.php18900644editdlrm
RefreshTokenRepository.php16380644editdlrm
RouteRegistrar.php47440644editdlrm
Scope.php11060644editdlrm
Token.php34660644editdlrm
TokenRepository.php29960644editdlrm
TransientToken.php6100644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/laravel/passport/src/HasApiTokens.php (1922B)
hasMany(Passport::clientModel(), 'user_id'); } /** * Get all of the access tokens for the user. * * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function tokens() { return $this->hasMany(Passport::tokenModel(), 'user_id')->orderBy('created_at', 'desc'); } /** * Get the current access token being used by the user. * * @return \Laravel\Passport\Token|null */ public function token() { return $this->accessToken; } /** * Determine if the current API token has a given scope. * * @param string $scope * @return bool */ public function tokenCan($scope) { return $this->accessToken ? $this->accessToken->can($scope) : false; } /** * Create a new personal access token for the user. * * @param string $name * @param array $scopes * @return \Laravel\Passport\PersonalAccessTokenResult */ public function createToken($name, array $scopes = []) { return Container::getInstance()->make(PersonalAccessTokenFactory::class)->make( $this->getKey(), $name, $scopes ); } /** * Set the current access token for the user. * * @param \Laravel\Passport\Token $accessToken * @return $this */ public function withAccessToken($accessToken) { $this->accessToken = $accessToken; return $this; } }