Subject: [SOLVED] created_at gets updated everytime I save a record
Hi guys, my records' created_at timestamp are always changed, even if the records are already there.
function show() { $resource = Resource::find($id); $resource->views++; $resource->save(); }
I have checked the database. The record's timestamps (both) change to the current timestamp.
UPDATE: My bad. I had a bad create table statement.
June 27 2010
February 28, 2014
Subject: [SOLVED] created_at gets updated everytime I save a record
Hi guys, my records' created_at timestamp are always changed, even if the records are already there.
Example code¶
I have checked the database. The record's timestamps (both) change to the current timestamp.
UPDATE: My bad. I had a bad create table statement.