protected function createAccessTokenProvider(ProviderRepository $repository)
    {
        Event::listen(AccessTokenCreated::class, function ($event) use ($repository) {
            $provider = config('auth.guards.api.provider');

            $repository->create($event->tokenId, $provider);
        });
    }
protected function createAccessTokenProvider(ProviderRepository $repository)
    {
        Event::listen(AccessTokenCreated::class, function ($event) use ($repository) {
            $provider = config('auth.guards.api.provider');

            $repository->create($event->tokenId, $provider);
        });
    }
protected function createAccessTokenProvider ( ProviderRepository $ repository ) { Event :: listen ( AccessTokenCreated :: class , function ( $ event ) use ( $ repository ) { $ provider = config ( 'auth.guards.api.provider' ) ; $ repository -> create ( $ event -> tokenId , $ provider ) ; } ) ; }
Create access token provider when access token is created.

@param ProviderRepository $repository
@return void
Create access token provider when access token is created .