Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 1 year ago.
0

You guys are useless.

jk, thanks for even looking at my question and here's the solution if anyone needs it.

The correct method to override is getUpdatedAtColumn() like this:

	public function getUpdatedAtColumn() {
		return null;
	}
Last updated 1 year ago.
0

As the base Illuminate\Database\Eloquent\Model::getUpdatedAtColumn returns the value of UPDATED_AT, I would override the constant and set it to null.

    const UPDATED_AT = null;
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.