发布于 5年前

Laravel 数据模型时间戳 fix Call to a member function diffForHumans() on string

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class User extends Model
{
    /**
     * 修改这里
     *
     * @var array
     */
    protected $dates = [
        'created_at',
        'updated_at',
        'deleted_at',
        'merged_at',
    ];
}
©2020 edoou.com   京ICP备16001874号-3