Laravel-mongodb: Using Standard Date Format instead of ISODATE

Created on 2 Apr 2018  路  2Comments  路  Source: jenssegers/laravel-mongodb

hey guys , I searched in issues but nobody answered my question,

when trying to create some record like this code :

// File : \App\Http\Controller\Auth\RegisterController.php
protected function create(array $data)
    {
        return Users::create([
            'username' => $data['username'],
            'email' => $data['email'],          
            'password' => Hash::make($data['password']),
        ]);
    } 

the result is :

"updated_at" : ISODate("2018-04-02T18:26:08Z"), 
"created_at" : ISODate("2018-04-02T18:26:08Z") 

I just wanna store date format as standard carbon format like this

"2018-03-10 19:22:23"

thanks in advance

question awaiting-author

All 2 comments

Found any solution for this?

Found any solution for this?

Unfortunately no.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sebastiaanluca picture sebastiaanluca  路  3Comments

HassanIbrahim picture HassanIbrahim  路  3Comments

sanjay1688 picture sanjay1688  路  3Comments

viacheslavpleshkov picture viacheslavpleshkov  路  3Comments

BlakeGardner picture BlakeGardner  路  3Comments