Updated_at and created_at are empty or zeros
If you use DB class and thinking that it will fill updated_at and created_at then you are wrong it wont . It will only fill updated_at and created_at if you use Eloquent models . So next time make sure to instantiate Eloquent model if you need timestamp columns
$post = new Post();
$post->name=Str::slug("this will fill timestamps columns");
$post->save();
No Comments
Leave a comment Cancel