Skip to content
Snippets Groups Projects
Commit 464c74b0 authored by GARDEL Valentin's avatar GARDEL Valentin
Browse files

ajout created_at

parent 731f791b
Branches
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ namespace bddApp\controleur;
use bddApp\model\Comment;
use bddApp\vues\VueComment;
use bddApp\model\User;
use Slim\Slim;
use Carbon\Carbon;
class CtrlComment
{
......@@ -28,6 +28,7 @@ class CtrlComment
$comm->email = $json["email"];
$comm->title = $json["title"];
$comm->content = $json["content"];
$comm->created_at = Carbon::now();
$comm->save();
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment