fix format_datetime when null use current

This commit is contained in:
xiaomlove
2022-06-17 00:29:26 +08:00
parent 0cf56968ea
commit c7b75b8349
3 changed files with 6 additions and 7 deletions
+2 -6
View File
@@ -78,12 +78,8 @@ class Test extends Command
*/
public function handle()
{
$arr = [
'uid' => 1,
'torrent_id' => 1,
'action_type' => 'ban',
];
TorrentOperationLog::query()->create($arr);
$r = Carbon::parse(null);
dd($r);
}