Im doing a CRUD for my Vue-Laravel aplication Im getting to the "/create" route and im creating a new "despesa" in my browser but when i press F5 doesnt save in my backend only in my frontend, how can i do that?
FRONTEND:
async addDespesa() {
let uri = "api/despesas/create";
const response = await axios.get(uri, this.despesa).then((response) => {
this.despesas.push({
des: this.despesa.des,
valr: this.despesa.valr,
stt: this.despesa.stt,
vencc: this.despesa.vencc,
emiss:this.despesa.emiss,
});
this.despesa.des = '';
this.despesa.valr = '';
this.despesa.vencc = '';
this.despesa.stt = '';
this.despesa.emiss = '';
})
},
BACKEND:
public function create() {
//
}
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Jmyhdv
via IFTTT
Aucun commentaire:
Enregistrer un commentaire