Published
danyal.dk
Published
Related Posts
Tip: Default current timestamp to Laravel migration
Quick tip of the day, how to add default datetime to migration.
$table->timestamp('some_date_at')->default(DB::raw('CURRENT_TIMESTAMP'));
Published
Published
Quick tip of the day, how to add default datetime to migration.
$table->timestamp('some_date_at')->default(DB::raw('CURRENT_TIMESTAMP'));