Eloquent model not updating updated_at timestamp

后端 未结 5 1495
北海茫月
北海茫月 2021-02-12 14:19

I\'m using Laravel 5.1. To make it simple, I have the following code

Migration:

Schema::create(\'sitemap_data\', function (Blueprint $table) {
    // Pri         


        
5条回答
  •  广开言路
    2021-02-12 15:04

    Yeah what Musterknabe has done is correct but he should also check his model SitemapData.php it should have to have set $timestamps = true;

提交回复
热议问题