我们有一个雄辩的模型,但我们希望所有日期都采用'Y-m-d'格式而不是'U'格式,如下所示: * The attributes that should be mutated to datesstringprotected $dateFormat = 'Y-m-d';$contract->update($attributes);
使用Car
name="created_at" placeholder="Enter the date the blog post created"> </div>我要做的是,将日期从数据库显示回输入框类型,允许用户编辑日期。那最好的办法是什么?
这可能是一个简单的问题,但我没有找到一个简单的解释,为什么它不工作对我。