fix date format

This commit is contained in:
omair saleh
2021-06-17 14:50:17 +08:00
parent eff4046cfa
commit 0075378e16
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ class DocumentResource extends JsonResource
'document_type' => $this->document_type,
'owner' => new CompanyResource($this->whenLoaded('owner')),
'files' => FileResource::collection($this->files),
'created_at' => Carbon::parse($this->created_at)->format('d-m-Y h:s:i')
'created_at' => Carbon::parse($this->created_at)->format('d-m-Y H:s:i')
];
}
}