BrokenCyde's avatar

Disable updated_at on single save

Hi,

It seems I can't disable updated_at column on Lumen when saving a model. It works fine for Laravel when using setUpdatedAt, but this doesn't work for Lumen.

Is there a cleaner way than overriding create parent method ?

0 likes
2 replies
rdelorier's avatar

Try setting timestamps to false on the model before saving

BrokenCyde's avatar

I still want to use the created_at column, but not the updated_at column. Settings timestamps to false will disable created_at at the same time.

Please or to participate in this conversation.