Posts by Márcio Lucas • 51 points
3 posts
-
1
votes1
answer326
viewsA: Return results with POST Jquery and PHP
The way it is, the content sent by the PHP server, by default will text/html, but jQuery needs content-type = json. You need to set the header to "application/json". Follow the code.…
jqueryanswered Márcio Lucas 51 -
1
votes0
answers48
viewsQ: Organize json with Eloquent
My question is this: I want to organize my json for me to consult the table Animal and Hacienda, but organized, example: { "animais": { "id": 1, "nome": "Mimosa", "data_nascimento": "2017-04-11…
-
3
votes1
answer1168
viewsQ: How to pass headers on request with Vue.js 2
I need to pass the header Authorization which is located in the localStorage with the key to iflix-user-token, here is my code: getFilmes: function () { this.$http.get(Api.url + '/filme').then(…