src/Http/Controllers/AuthorizationController.php
protected function parseScopes($authRequest)
    {
        return Passport::scopesFor(
            collect($authRequest->getScopes())->map(function ($scope) {
                return $scope->getIdentifier();
            })->unique()->all()
        );
    }
protected function parseScopes($authRequest)
    {
        return Passport::scopesFor(
            collect($authRequest->getScopes())->map(function ($scope) {
                return $scope->getIdentifier();
            })->unique()->all()
        );
    }
protected function parseScopes ( $ authRequest ) { return Passport :: scopesFor ( collect ( $ authRequest -> getScopes ( ) ) -> map ( function ( $ scope ) { return $ scope -> getIdentifier ( ) ; } ) -> unique ( ) -> all ( ) ) ; }
Transform the authorization requests's scopes into Scope instances.

@param  \League\OAuth2\Server\RequestTypes\AuthorizationRequest  $authRequest
@return array
Transform the authorization requests s scopes into Scope instances .