simply save your model to the database ($model->save()), the attribute you need will be saved in datetime format, probably the column type for this attribute should be also timestamp
like for 'created_at' and 'updated_at'.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community