php - automatic updating of timestamps in tables with no model -
doesn't laravel
automatically update timestamps
of tables have no model
, 'pivot'
table? have tried doing doesn't update timestamps
.
and if doesn't update it, there way can using laravel
? or way update them manually updating columns 'created_at'
or 'updated_at'
?
laravel updates fields when you're using modal. if want update them manually can so.
db::table('table')->where('id', '=', '1')->update(array( 'created_at' => date('y-m-d h:i:s'), 'updated_at' => date('y-m-d h:i:s') ));
Comments
Post a Comment