Temporarily disable timestamps in Laravel
Here’s how you can temporarily disable timestamps (created_at
and updated_at
fieldss) in Laravel.
$post = Post::find(1);
$post->timestamps = false;
$post->title = 'New Title';
$post->save();