src/Platform/Updates.php
public function requestVersion(): array
    {
        try {
            $versions = json_decode(file_get_contents($this->apiURL), true)['packages']['orchid/platform'];

            return array_reverse($versions);
        } catch (\Exception $exception) {
            Log::alert($exception->getMessage());

            return [['version' => '0.0.0']];
        }
    }
public function requestVersion(): array
    {
        try {
            $versions = json_decode(file_get_contents($this->apiURL), true)['packages']['orchid/platform'];

            return array_reverse($versions);
        } catch (\Exception $exception) {
            Log::alert($exception->getMessage());

            return [['version' => '0.0.0']];
        }
    }
public function requestVersion ( ) : array { try { $ versions = json_decode ( file_get_contents ( $ this -> apiURL ) , true ) [ 'packages' ] [ 'orchid/platform' ] ; return array_reverse ( $ versions ) ; } catch ( \ Exception $ exception ) { Log :: alert ( $ exception -> getMessage ( ) ) ; return [ [ 'version' => '0.0.0' ] ] ; } }
Make a request for Packagist API.

@return array
Make a request for Packagist API .