При вставке данных формы консоль пропускает ErrorException:
Преобразование массива в строку в файле E: \ laragon \ www\Project1 \ src \ api \ v1 \ vendor \ laravel \ framework \ src \ Подсветить \ Support \ Str. php.
Может кто-нибудь помочь мне в этом.
Мой код
createRecord() {
this.$vs.loading();
jwt.createLeads(this.newRecord).then((response) => {
this.$vs.loading.close();
this.$vs.notify({
title: 'Success',
text: response.data.message,
iconPack: 'feather',
icon: 'icon-alert-circle',
color: 'success'
});
// response.data.leads['user'] = [];
this.$store.dispatch("userManagement/upsertToState", { type: "Leads", data: response.data.leads });
this.newRecord.leadtype = this.newRecord.first_name =
this.newRecord.last_name = this.newRecord.email_id =
this.newRecord.phone_number =
this.newRecord.location = this.newRecord.postcode =
this.newRecord.lead_address = this.newRecord.gender =
this.newRecord.lead_source =
this.newRecord.required_sub = this.newRecord.teach_mode =
this.newRecord.location_pref = this.newRecord.lead_frequency =
this.newRecord.session_duration = this.newRecord.pref_days =
this.newRecord.pref_time_slot = this.newRecord.tutor_pref =
this.newRecord.lead_owner = this.newRecord.notes = ''
// this.newRecord = ''
}).catch((error) => {
console.log(error)
this.$vs.loading.close();
this.$vs.notify({
title: 'Error',
text: 'There was an error creating the Lead',
iconPack: 'feather',
icon: 'icon-alert-circle',
color: 'danger'
});
});
},
},