Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“Route [spid-auth_do-login] not defined” error. #108

Open
MichaelPiant opened this issue Nov 27, 2024 · 0 comments
Open

“Route [spid-auth_do-login] not defined” error. #108

MichaelPiant opened this issue Nov 27, 2024 · 0 comments

Comments

@MichaelPiant
Copy link

Hello,
I’m encountering an error with the package version ^2.0 on a fresh Laravel 10 installation with PHP 8.2. After following the installation steps from README, if I run “php artisan route:cache” it returns the following error:
[ErrorException] Route [spid-auth_do-login] not defined.
Environment:

  • Laravel: 10.x (fresh installation)
  • PHP: 8.2
  • italia/spid-laravel: ^2.0

Some useful info:

  • No additional packages or middleware are installed
  • routes/web.php contains only the default ‘/’ route provided by Laravel

Steps to reproduce the error:

  • Create new Laravel 10.x project
  • Install italia/spid-laravel
  • Run the following commands:
    • composer config extra.enable-patching true
    • composer config minimum-stability beta
    • composer config prefer-stable true
    • composer require italia/spid-laravel
    • php artisan vendor:publish --provider="Italia\SPIDAuth\ServiceProvider"
  • Run php artisan route:cache

Expected Behavior
The command php artisan route:cache should complete without errors, and the application should function normally.
Actual Behavior
The command fails with the error:
[ErrorException] Route [spid-auth_do-login] not defined.
Related to #88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant