laravel日期字段carbon 输出格式转换

 /**
 * The attributes that should be cast.
 *
 * @var array
 */
protected $casts = [
    'created_at' => 'datetime:Y-m-d',
];

滑动验证页面icon-default.png?t=N7T8https://segmentfault.com/q/1010000043327049

你可能感兴趣的:(laravel,php,carbon)