Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel passport installation error

I've just downloaded the latest laravel 5.3 and I'm trying to install passport, but I'm getting the following composer error:

Your requirements could not be resolved to an installable set of packages.

      Problem 1
        - laravel/passport v2.0.0 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0].
        - laravel/passport v2.0.1 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0].
        - Conclusion: don't install illuminate/http v5.4.0
        - Installation request for laravel/passport ^2.0 -> satisfiable by laravel/passport[v2.0.0, v2.0.1].


    Installation failed, reverting ./composer.json to its original content.

Composer .json file
http://pastebin.com/ne4RkL96

like image 828
Arafath Avatar asked Jan 27 '17 03:01

Arafath


People also ask

Where is laravel passport token stored?

You can store this token in local storage. This token is also stored in the oauth_access_tokens table. We will be sending a GET request to your URL and we need to send it token as Authorization Header. Above way successive technologies can do API authentication in Laravel Application with a passport.

What is OAuth2 authentication in laravel?

Laravel Passport is an OAuth 2.0 server implementation for API authentication using Laravel. Since tokens are generally used in API authentication, Laravel Passport provides an easy and secure way to implement token authorization on an OAuth 2.0 server.


1 Answers

For Laravel 5.3.

In your composer.json file put "laravel/passport": "~1.0" and run "composer update" command.

like image 80
andrei040191 Avatar answered Oct 06 '22 01:10

andrei040191