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

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

c++ - Serialize a class with a Qlist of custom classes as member (using QDataStream) -

Read video using VideoReader function in Matlab? -