I have created a new project with
laravel new blogposts
using \"Laravel Installer 2.0.1\" globally installed on my ubuntu 18.
Wh
I am unable to comment since I do not have 50 Rep but I would like to add onto rkj's solution. Those commands do work but in my case I was running laravel through homestead and you cannot fetch those packages while sshing into homestead you must use your global composer to fetch the packages. This is a windows 10 machine also to clarify.
Same issue with Laravel 5.5.40 or higher. So you need to specify the version of the passport like this;
composer require paragonie/random_compat:2.*
composer require laravel/passport=~4.0
Try this! It worked for me
composer require paragonie/random_compat:2.*
composer require laravel/passport=~4.0
simply install any lower version of passport, Run the command:
composer require laravel/passport "5.*"
Go to your composer.json file
And set below :
"require": {
"php": ">=7.0.0",
"fideloper/proxy": "~3.3",
"guzzlehttp/guzzle": "^6.3",
"laravel/framework": "5.5.*",
"laravel/passport": "~4.0",
"laravel/socialite": "^3.0",
"laravel/tinker": "~1.0",
},
And then run composer update
command.
This link may help you https://github.com/laravel/passport/issues/774
They said, it fixed their issue
composer require paragonie/random_compat:2.*
composer require laravel/passport