I am in the process of converting one of our web applications from CodeIgniter to Laravel. However, at the moment we do not want to add the updated_at / created_at fields to all our tables, since we have a logging class that does all this in more detail for us already.
I know that I can set $timestamps = false; at:
Vendor\laravel\framework\src\illuminate\Datebase\Eloquent\Model.php
However, I would prefer not to change the main file for Laravel, or all of my models have what's on top. Is there a way to disable this elsewhere for all models?
php eloquent laravel
projectxmatt Nov 12 '13 at 18:54 2013-11-12 18:54
source share