cli/Valet/Valet.php
/**
     * Determine if this is the latest version of Valet.
     *
     * @param  string  $currentVersion
     * @return bool
     */
Determine if this is the latest version of Valet.
@param  string  $currentVersion
@return bool
Determine if this is the latest version of Valet . @param string $currentVersion @return bool
function onLatestVersion($currentVersion)
    {
        $response = \Httpful\Request::get('https://api.github.com/repos/vitr/valet4windows/releases/latest')->send();
        return version_compare($currentVersion, trim($response->body->tag_name, 'v'), '>=');
    }
function onLatestVersion ( $ currentVersion ) { $ response = \ Httpful \ Request :: get ( 'https://api.github.com/repos/vitr/valet4windows/releases/latest' ) -> send ( ) ; return version_compare ( $ currentVersion , trim ( $ response -> body -> tag_name , 'v' ) , '>=' ) ; }
Determine if this is the latest version of Valet.
Determine if this is the latest version of Valet .