Laravel 10 API资源中时间格式设置 0 By 董德多 on 2023年10月26日 Laravel 直接在 toArray 方法中对时间字段调用 format 方法即可。 public function toArray($request) { return [ 'created_at' => $this->created_at->format('Y-m-d H:i:s') ]; } API资源 resource
Livewire 3 上传图片预览功能,本地正常,发布到服务器预览提示图片无法显示,查看链接/livewire/preview-file/…提示401 Unauthorized和404 Not Found Laravel 董德多2025年6月10日1 Min Read