laravel操作數據庫報錯--基礎

操作數據庫報錯: 原因:migrate遷移自動生成兩個時間,用model執行sql都會更新這兩個時間,所以要在model中這是不更新這兩個時間。 解決:在xx.model裏面加上public $timestamps = false;
相關文章
相關標籤/搜索