Did you know that in migrations there's not only timestamps()
but also timestampsTz()
, for the timezone?
1Schema::create('employees', function (Blueprint $table) {2 $table->increments('id');3 $table->string('name');4 $table->string('email');5 $table->timestampsTz();6});
Also, there are columns dateTimeTz()
, timeTz()
, timestampTz()
, softDeletesTz()
.