public function newFromBuilder($attributes = array(), $connection = NULL) { $model = parent::newFromBuilder($attributes); // Eloquent if ($model->fecha_nacimiento == '-0001-11-30 00:00:00') { $model->fecha_nacimiento = NULL; } if ($model->created_at == '-0001-11-30 00:00:00') { $model->created_at = Carbon::now(); } if ($model->updated_at == '-0001-11-30 00:00:00') { $model->updated_at = Carbon::now(); } return $model; }