I have a column dateTimein my migrations that Laravel accepts as Carbon. The name of the column terminado_emand is NULL.
I set the value Carbonusing my model.
Now that I want to install terminado_emin null:
public function reiniciar()
{
$this->terminado_em = null;
...
}
I get an error
InvalidArgumentException in Carbon.php line 425: Data missing
How to set a property Carbonto null if it is already set to a value Carbon?
source
share