How to disable Laravel default timestamp

If you want to disable Laravel default timestamp (created_at or updated_at), here are the tips.

Disable globally:

If you want to disable globally, you need to go to base model and define timestamp false as follows-

public $timestamps = false;

 

Disable individually:

In some cases, maybe you need to stop individually. In this case, just go to particular model and set this public property.

public $timestamps = false;

Hope it will be helpful for you.