I can't install Auth0 packages in Laravel 6

I can’t install the auth/login composer with Laravel ^6.0 package. The error that composer gives me is the following: Your requirements could not be resolved to an installable set of packages.
I tried laravel version 5.8 and it worked, however, I need the most current version that is laravel 6.0.

Could you please help me with this?

Thanks in advance! :blush:

This is the error:

And the composer.json:

{
“name”: “laravel/laravel”,
“type”: “project”,
“description”: “The Laravel Framework.”,
“keywords”: [
“framework”,
“laravel”
],
“license”: “MIT”,
“require”: {
“php”: “^7.2”,
“fideloper/proxy”: “^4.0”,
“laravel/framework”: “^6.0”,
“laravel/tinker”: “^1.0”
},
“require-dev”: {
“facade/ignition”: “^1.4”,
“fzaninotto/faker”: “^1.4”,
“mockery/mockery”: “^1.0”,
“nunomaduro/collision”: “^3.0”,
“phpunit/phpunit”: “^8.0”
},
“config”: {
“optimize-autoloader”: true,
“preferred-install”: “dist”,
“sort-packages”: true
},
“extra”: {
“laravel”: {
“dont-discover”:
}
},
“autoload”: {
“psr-4”: {
“App\”: “app/”
},
“classmap”: [
“database/seeds”,
“database/factories”
]
},
“autoload-dev”: {
“psr-4”: {
“Tests\”: “tests/”
}
},
“minimum-stability”: “dev”,
“prefer-stable”: true,
“scripts”: {
“post-autoload-dump”: [
“Illuminate\Foundation\ComposerScripts::postAutoloadDump”,
@php artisan package:discover --ansi”
],
“post-root-package-install”: [
@php -r "file_exists(‘.env’) || copy(‘.env.example’, ‘.env’);"”
],
“post-create-project-cmd”: [
@php artisan key:generate --ansi”
]
}
}

1 Like

I have the same issue with a fresh laravel 6 install.

I know this is referenced in the other topic you are a part of @MelanieTirado but I am going to share the answer here as well for others like @eeerlend.

After talking with our SDK team, the supporting changes is within the master branch. There are times where the Master branch contains unreleased changes which appears to have happened in this case but is documented in the changelog.md. This should be officially released in the very near future.

However to get ahead of the official release you can leverage the master branch in Composer that would be something like this should help you move forward.

"repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/auth0/laravel-auth0"
        }
    ],
    "require": {
        "auth0/laravel-auth0": "dev-master"
    }

Thanks!

Just FYI for everyone waiting … 5.3.0 is released with Laravel 6 support and better session handling!

Thank you for your patience on this.

1 Like

I can confirm that this release fixed my problems. Thanks!

2 Likes

Glad to hear that @eeerlend!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.