i have a page to get some data from user, this data will save in first_forms
table, but i have other fields in table for next page and they are null.
this is first_forms
table :
in this table project_name
, customer_name
, buyer
, response
, model
will be saved in first step in first page choose.blade.php
this is store function in controller :
FirstForm::create([
'model' => $request['model'],
'project_name' => $request['project_name'],
'customer_name' => $request['customer_name'],
'buyer' => $request['buyer'],
'response' => $request['response'],
]);
return view('Form2.firstForm');
as you can see other fields in first_forms
table will be null.
after this user redirect to next page firstForm
.
now in this page user have to complete other fields like : airflow
, tcp
, compress_number
, ...
i want when user click on submit in this page, new fields in this page save in previous row in first_forms
table who complete in previous page, how can i do this ?
i think i have to get id who complete in previous page and update row with new fields in new page, but i don't know haw can i get id and update row.
this is first_forms
table when user complete first page :
this is data who complete in first page
in next page that fields who are null, have to be complete in this row.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire