Answers for "laravel migration string to timestamp"

SQL
4

mysql timestamp in laravel migration

$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
Posted by: Guest on August-04-2020
0

laravel convert timestamp to date

laravel convert timestamp to date
date('Y-m-d', strtotime($date));

laravel convert date to timestamp
date('Y-m-d H:i:s', strtotime($date));
Posted by: Guest on April-08-2021

Code answers related to "laravel migration string to timestamp"

Code answers related to "SQL"

Browse Popular Code Answers by Language