I'm trying to edit a Form using fill()->save()
but instead of updating it Laravel 5 tries to make insert
and gives error saying that the record already exists in the table.
$input = $request->all();
$record->fill($input)->save();
I'm using rules: class MeuFormRequest extends Request
'nome' => 'required|unique:empresa,nome' . ($id ? ",$id" : '')
Does anyone have any idea what might be wrong?