Laravel Model Without Timestamps

Source URL: https://stackoverflow.com/questions/19937565/disable-laravels-eloquent-timestamps

Language: php

Created on: 2020-04-03 13:58:42

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Post extends Model
{
    public $timestamps = false;

    //
}
I'm in the process of converting one of our web applications from CodeIgniter to Laravel. However at this moment we don't want to add the updated_at / created_at fields to all of our tables as we h...
content_copy