Why does a field set to timestamps, but it does not automatically fill in the current timestamp during update or addition as I expected? In addition, the data table generated using migrate of Laravel is the same. the timestamps field in the generated table does not work at all. Yes... why does a field set to timestamps, but it does not automatically fill in the current timestamp during update or addition as I expected?
In addition, the data table generated using migrate of Laravel is the same. the timestamps field in the generated table does not work at all. Why?
This is the migration file.
Increments ('id'); $ table-> smallInteger ('Equip _ id')-> unsigned ()-> comment ('device ID '); $ table-> string ('eqiup _ name')-> comment ('device name'); $ table-> string ('eqiup _ desc ') -> comment ('device description'); $ table-> timestamps (); $ table-> primary ('Equip _ id ');});} /*** Reverse the migrations. ** @ return void */public function down (){//}}