php - Laravel 5.1 Update message but it touch both created_at and updated_at -
as title, after update message using code below:
$id = 1; $message ="updated"; post::where(['id' => $id])->update(['message' => $message]);
both created_at , updated_at change current timestamp.
how make update timestamp updated_at , dont update timestamp @ created_at when using update?
thanks
your created_at column set auto-updated.
Comments
Post a Comment