As title, after update message using code below:
$id = 1;
$message ="Updated";
Post::where(['id' => $id])->update(['message' => $message]);
both created_at and updated_at change to current timestamp.
how to make it update timestamp only updated_at and dont update timestamp at created_at when using update?
Thanks
Your created_at column is probably set to be auto-updated.