get( $this->sparkUrl.'/api/releases/all-versions' )->getBody()); return collect($response)->filter(function ($version) use ($major) { return ! $major || Str::startsWith($version, $major); })->sort('version_compare')->last(); } /** * The Spark base URL. * * @var string */ protected $sparkUrl = 'https://spark.laravel.com'; }