I am trying to display the "created_at" field from my database using laravel as my backend app and vuejs as my frontend app.
This is what is presently being displayed: Time: { "created_at": "2018-02-22 14:14:30" }
This is what I want to be displayed: Time: 22-Feb-2018 14:14:30
My laravel backend code:
$date = loan_request::all('created_at')->toArray();
return([$date]);
Any help rendered would be appreciated..
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire