0
CONTROLLER CODE
$form_data = array(
'numdoc' => $request->numdoc,
'data_emissao' => $date_emissao,
'data_debito' => $date_debito,
'cliente_id' => $request->cliente_id,
'devedor_id' => $request->devedor_id,
'valor' => $request->valor,
'user_id' => Auth::id(),
'meses_atraso' => $request->meses_atraso,
'multa' => $request->multa,
'valor_recebido' => $request->valor_recebido,
);
Divida::update($form_data);
Error: Non-static method Illuminate Database Eloquent Model::save() should not be called statically
What is the key field of the table?
– Jorge Costa
In the table is as id
– André Cabral