Search code examples
phplaravelcomposer-phplaravel-5.3laravel-passport

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


Solution

  • It happens, because after releasing Laravel 5.4, this package also had been updated to v 2.0 and requires Laravel 5.4. But you are using Laravel 5.3. Try to install earlier version:

    composer require laravel/passport ^v1
    

    Also, you can learn about the versions of this package here:

    Laravel Passport