Reputation: 7052
I am trying to save Date value in Database from Laravel. I set MySql
column type DateTime
. My controller code is like below
$seller->license_date = $request->license_date;
1970-01-01 00:00:00
is saving in Database.
Upvotes: 0
Views: 44
Reputation: 11
Please check the value you are getting from dd($request->license_date) & dd($seller->license_date) if it is as the same format as 1970-01-01 00:00:00.
Upvotes: 1