Hi everyone,
I have this little problem and I can't find the answer or why it's doing this.
Let say that I created an article, the created_at and updated_at are currently the same, this is ok.
Now when I update this article, the created_at and updated_at fields are modified to the current timestamps, but in my logic the created_at field shouldn't be updated.
Also I don't know why but updated_at field = created_at field minus 1 hour...
Here is my controller who update the article:
public function update($id, ArticleRequest $request) {
$article = Article::findOrFail($id);
$article->update($request->all());
return Redirect('/articles/'.$id);
}
Can someone help me ? Thanks