Skip to content

Commit

Permalink
Merge branch 'updated_at'
Browse files Browse the repository at this point in the history
  • Loading branch information
robsonvleite committed Jan 17, 2023
2 parents 47ebab9 + ef2ccd5 commit 619eb83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/CrudTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ protected function create(array $data): string|bool
{
if ($this->timestamps) {
$data["created_at"] = (new DateTime("now"))->format("Y-m-d H:i:s");
$data["updated_at"] = $data["created_at"];
}

try {
Expand Down Expand Up @@ -106,4 +105,4 @@ private function filter(array $data): ?array
}
return $filter;
}
}
}

0 comments on commit 619eb83

Please sign in to comment.