managed to install Laravel 8 using the following command.
composer create-project --prefer-dist laravel/laravel:^8.0 l5
Also, make sure you are using composer version ^2.0
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Given the availability of Laravel 10, it is not ideal to install Laravel 8. However, since the server is running PHP 7.4.x, installing the latest version of Laravel is not possible. Any ideas how to do this? When doing this via composer, it fails with this error.
Command:
composer create-project laravel/laravel demosBackend/
Could not fetch https://api.github.com/repos/laravel/laravel/zipball/843a4f81eb25b88b225a89d75a2d3c274e81be6b, please review your configured GitHub OAuth token or enter a new one to access private repos
When working with _public_ GitHub repositories only, head to https://github.com/settings/tokens/new?scopes=&description=Composer+on+DESKTOP-B3CS5F7+2023-04-28+1240 to retrieve a token.
From the error, it appears that the older version of Laravel is in a private repo. Any ideas how to install Laravel version 8.x?
@qwertynik maybe you are facing the issue describe here https://stackoverflow.com/questions/49518579/composer-asking-oauth-token-for-download-public-repo
Please or to participate in this conversation.