mercredi 29 mars 2017

How to set date and time for 2 different variable?

for example:

DB::connection('mydb_oracle')->table('audit_trail')
->insert(['at_date'=>Carbon::now()->toDateString(),'time_stamp'=>Carbon::now()->toTimeString()])

How can i set the format for both date and time ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire