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

Laravel 7 does not seem to work with vue axios request, with api_token #4

Open
ikubij opened this issue Jun 22, 2020 · 0 comments
Open

Comments

@ikubij
Copy link

ikubij commented Jun 22, 2020

With laravel 7, can you still send an axios request, the way you did:

        axios.post(this.baseUrl+"/api/posts/"+this.post.id+"/comment",{
                api_token: this.user.api_token,
                body: this.comment
            })
            

Cause when I console.log user, there isn't an API token, or do I have to start using passport?

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