current time in laravel migration

Solutions on MaxInterview for current time in laravel migration by the best coders in the world

showing results for - "current time in laravel migration"
Ian
12 Oct 2018
1$table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP'));
Beatrice
07 Jun 2016
1$table->timestamp('created_at')->useCurrent();
María
23 Jun 2020
1$table->timestamp('column_name')->useCurrent();
similar questions
queries leading to this page
current time in laravel migration