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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -