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

Examples for unmentioned routes (like Email Verification) #2236

Open
saleh-mir opened this issue Dec 6, 2023 · 1 comment
Open

Examples for unmentioned routes (like Email Verification) #2236

saleh-mir opened this issue Dec 6, 2023 · 1 comment

Comments

@saleh-mir
Copy link

Subject of the issue

I want to use Laravel as an API (on api.xxx.com) only for my website, which has a SPA frontend (on xxx.com). That's why I'm using this package for authentication.

The problem I have is with the implementation of routes that haven't been mentioned in your documentation. For example, email verification. Are there any examples of that? Because the official Laravel website always assumes that you are using Laravel for displaying your views and isn't really meant for using it as an API.

Your environment

Q A
Bug? no
New Feature? yes (kinda)
Framework Laravel
Framework version 10
Package version 2
PHP version 8.1
@eznix86
Copy link

eznix86 commented Mar 5, 2024

It is mentionned for api.

You need to use the auth('api')

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

2 participants