Skip to content

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

@ikubij

Description

@ikubij

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions