I am making a API request but when i retrieve created_at then i get 2019-10-09T11:07:08.000000Z but in database it is 2019-10-09 11:07:08. How can i solve this issue? I don't want to use date formatting because i already have proper date format in my database. I just want what i have in database. Look at my database: https://prnt.sc/piljms
API Controller:
public function singleGallery($id)
{
$gallery = Gallery::findOrFail($id);
return new GalleryResource($gallery);
}
Gallery Resource:
return [
'gallery_id' => $this->id,
'created_date' => $this->created_at,
'modified_date' => $this->updated_at
]
2019-10-09T11:07:08.000000Z? What are you expecting?2019-10-09 11:07:082019-10-09 11:07:08then why it is showing2019-10-09T11:07:08.000000Z?