我尝试验证POST请求。格式为:
public function setDateDebutAttribute($value)
{
$this->attributes['date_debut'] = $value ? Carbon::createFromFormat(config('panel.date_format'), $value)->format('Y-m-d') : null;
}
我收到此错误消息:日期首次亮相不是d-m-Y.te格式
如何更改dd/mm/yyyy
中的日期格式>
我尝试验证POST请求。格式为:公共函数setDateDebutAttribute($ value){$ this-> attributes ['date_debut'] = $ value? Carbon :: createFromFormat(config('panel ....
尝试一下,我认为这是可行的。