How to disable saving of eloquent timestamps

Basically timestamp saving means storing date data into created_at, modified_at or deleted_at fields in table of laravel database during resource creation, updating or deletion.

It can be done in placing following snippet into your desired model

public $timestamps = false;


Thus, when it is disabled storing data into above fields will be skipped.

Related Posts


Changing timestamp field names

Setting up custom date format

Using fillable or guarded