Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 387 Bytes

timestamps_with_timezone.md

File metadata and controls

13 lines (11 loc) · 387 Bytes

Timestamps with timezone

In migrations there's not only timestamps() but also timestampsTz(), for the timezone

Also, there are columns dateTimeTz(), timeTz(), timestampTz(), softDeletesTz().

Schema::create('employees', function (Blueprint $table) {
    $table->increments('id');
    $table->string('name');
    $table->string('email');
    $table->timestampsTz();
});