0

I'm trying to install socialite in laravel 5.7. But it seems that the installer package not found. Here is how it looks:

composer require laravel/socialite
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
The "http://packagist.org/p/paragonie/random_compat%24db1b5c1b43ef534aed7fe377b7d6e9ada59ee25deed500ba426fd9e421116aa3.json" file could not be downloaded: failed to open stream: HTTP request failed! 
http://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date

I've tried using composer require laravel/socialite and composer require laravel/socialite "^3.2.0" but get the same problem.

Abaij
  • 853
  • 2
  • 18
  • 34

2 Answers2

0

I finally got the solution from here

So what I do is adding this lines to composer.json file

"repositories": [
{
    "packagist": false
},
{
    "type": "composer",
    "url": "https://packagist.org/"
}
],

As you can see composer requires https while laravel use http by default.

Abaij
  • 853
  • 2
  • 18
  • 34
-1

"^3.2.0" this is for laravel 5.6 for laravel 5.7 frame work try this

composer require laravel/socialite "4.0"