mardi 30 mai 2017

Timestamps in laravel is not working well

What happen to my created_at and updated_at fields? Im using laravel5.1. I have this on my table:

=====================================
Name               type               default
created_at   |   timestamp  |  0000-00-00 00:00:00
updated_at  |   timestamp  |  0000-00-00 00:00:00



Migration is this:

$table->increments('id')->unsigned();
$table->timestamps();


Result
The red is my actual date, the first green is the created_at and the second green is the updated_at enter image description here



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire