国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

webman timestamp 時(shí)間亂碼

workerman_dylan

截圖

數(shù)據(jù)庫:DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
created_at timestamp NULL DEFAULT NULL,
updated_at timestamp NULL DEFAULT NULL,
deleted_at timestamp NULL DEFAULT NULL,

2045 1 0
1個(gè)回答

yzh52521

illuminate/database 是吧?
自己去laravel 看文檔

  • workerman_dylan 2022-06-21

    laravel 【use DefaultDatetimeFormat;】webman不知道該如何處理

  • yzh52521 2022-06-21
    namespace app\common\traits;
    
    use Carbon\CarbonInterface;
    use DateTimeInterface;
    
    trait DateFormat
    {
        protected function serializeDate(DateTimeInterface $date): string
        {
            return $date->format(CarbonInterface::DEFAULT_TO_STRING_FORMAT);
          //  return $date->format($this->dateFormat ?: 'Y-m-d H:i:s');
        }
    }

    model里
    use DateFormat;

年代過于久遠(yuǎn),無法發(fā)表回答
??