I search all the related article but no solution. I was setting up a sitemap for Laravel when I realise the timestamp is not ok. So this is bad for SEO.
I always have those 0 in the created_at and updated_at field in the MySQL database.
I'm not sure if this is a Laravel, SQL or Excel question.
What I do:
- migrate my table in laravel in my localhost
$table->timestamps();
tried this also but no
$table->timestamp('created_at')->useCurrent();
$table->timestamp('updated_at')->useCurrent();
$timestamps = false;
$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
I import the sql database in the server phpmyadmin from my localhost
And import the excel csv file in phpmyadmin with the data.
Maybe there's another way to properly do this?