Good morning. I was making a Vue.js connection with Axios and Laravel and I noticed this problem. 1. I added a method and wanted to show the element by console.
methods: {
newThought(){
const params = {
description: this.description
}
axios.post('/thoughts', params).then((Response) => console.log(Response));
this.$emit('new', thought);
this.$description = '';
}
}
I checked it in the search engine on the Network tab and the following line came out
Deprecated : Automatically populating $ HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php: // input stream instead. in Unknown on line 0
Warning : Can not modify header information - headers already sent in Unknown on line 0 {"description": "Thought", "user_id": 1, "updated_at": "2018-05-29 11:22:55", "created_at": "2018-05-29 11:22:55", " id ": 2}
that same data comes out in place of the Data that I expected.
I'm using Wamp. I leave the github repo in case the problem requires me to know if I do something else wrong.