-2
When trying to perform the following update:
$criterios = Criterios::find(1);
$criterios->update(
[
'criterios' => $request->criterios
'editado_por' => $user->id
]
);
I get the error: Datetime::__Construct(): Failed to parse time string (Thu 23 Apr 16:40:16 2020) at position 13 (:): Unexpected
The Insert is done correctly, I have no mutator, follow my model:
class Criterios extends Model
{
protected $table = 'criterios';
protected $fillable = ['criterios', 'editado_por']
}
You can’t tell with just this code.
– novic