ello Devs,

In this tutorial, we are going to learn how to set model timestamps false in laravel.

Create new records using create method.

Blog::create(['title' => 'nicesnippets.com']); 


app/Blog.php

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Item extends Model
{

    public $fillable = ['title'];

    public $timestamps = false;

}


I hope this example helps you.