Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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