src/Passport.php
public static function scopes()
    {
        return collect(static::$scopes)->map(function ($description, $id) {
            return new Scope($id, $description);
        })->values();
    }
public static function scopes()
    {
        return collect(static::$scopes)->map(function ($description, $id) {
            return new Scope($id, $description);
        })->values();
    }
public static function scopes ( ) { return collect ( static :: $ scopes ) -> map ( function ( $ description , $ id ) { return new Scope ( $ id , $ description ) ; } ) -> values ( ) ; }
Get all of the scopes defined for the application.

@return \Illuminate\Support\Collection
Get all of the scopes defined for the application .