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 [login] not defined #5

Open
modnar1226 opened this issue Oct 27, 2019 · 0 comments
Open

Route [login] not defined #5

modnar1226 opened this issue Oct 27, 2019 · 0 comments

Comments

@modnar1226
Copy link

desired outcome: login in with good credentials, redirect to dashboard.

actual outcome: InvalidArgumentException
Route [login] not defined.

laravel 5.8
ubuntu 19

i am using a subdomain admin.site/
i can login but it goes through the default authenticate middleware and doesn't touch the unauthenticated() method created in the exception\handler class.

Im pretty sure everything else is correct but i'm really not sure what is happening

  1. is the custom method needed if it goes through the authenticate middleware anyway?
  2. i can probably work around this if i could access the $request::current() method inside the authenticate class but can't.
  3. i can likely use the session data for header host to determine the subdomain, but that seems a bit hacky. If it is possible to access the $request::current() method inside of the custom unauthenticated() method that would be great if it can be explained how to route the request to the unauthenticated method.
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