I have a small problem, very basic in my opinion, what happens is that I am trying to save some data, but I can not, this I try to do with vue. in an instance of Vue I have this
newWarranty : {'nombre_garantia' :'', 'valor_garantia' : null, 'descripcion' : ''}
that are the fields that I want to fill, it happens that in my opinion I send them correctly, because it validates me well in laravel, but when I save this record I do not know how to access them. this is my controller and for the moment only valid.
public function store(StoreWarranty $request)
{
return ;
}
and the data sent in this way by axios.
createWarranty(){
var url = 'warranties';
axios.post(url,{
warranty : this.newWarranty
}).then(response => {
vm.getWarranty();
vm.newWarranty = {'nombre_garantia' :'', 'valor_garantia' : null , 'descripcion' : ''};
vm.errors = [];
$('#create').modal('hide');
$.notify('Nueva tarea creada con exito','success');
}).catch(error => {
vm.errors = error.response.data.errors
})
}