src/Http/Controllers/AuthorizedAccessTokenController.php
public function forUser(Request $request)
    {
        $tokens = $this->tokenRepository->forUser($request->user()->getKey());

        return $tokens->load('client')->filter(function ($token) {
            return ! $token->client->firstParty() && ! $token->revoked;
        })->values();
    }
public function forUser(Request $request)
    {
        $tokens = $this->tokenRepository->forUser($request->user()->getKey());

        return $tokens->load('client')->filter(function ($token) {
            return ! $token->client->firstParty() && ! $token->revoked;
        })->values();
    }
public function forUser ( Request $ request ) { $ tokens = $ this -> tokenRepository -> forUser ( $ request -> user ( ) -> getKey ( ) ) ; return $ tokens -> load ( 'client' ) -> filter ( function ( $ token ) { return ! $ token -> client -> firstParty ( ) && ! $ token -> revoked ; } ) -> values ( ) ; }
Get all of the authorized tokens for the authenticated user.

@param  \Illuminate\Http\Request  $request
@return \Illuminate\Database\Eloquent\Collection
Get all of the authorized tokens for the authenticated user .