Laravel_Echo_Tutorial icon indicating copy to clipboard operation
Laravel_Echo_Tutorial copied to clipboard

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

Open ikubij opened this issue 5 years ago • 0 comments

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?

ikubij avatar Jun 22 '20 13:06 ikubij