Schema::create('users', function (Blueprint $table) { $table->id(); $table->string('name'); $table->timestampsTz(); });
Once you have run the migration, now you will be able to specify the timezone for the timestamp.
Learn how to add timezone field in Laravel migration to replace the commonly used timestamp type.
Created on Aug 01, 2021
•656 views
Schema::create('users', function (Blueprint $table) { $table->id(); $table->string('name'); $table->timestampsTz(); });
If you like our tutorial, do make sure to support us by being our Patreon or buy us some coffee ☕️
Load comments for How to Add Timezones Fields in Laravel Migration
Collection of Tailwind CSS components for everyone to use. Browse all of the components that are right for your project.
View Components1 year ago
1 year ago
1 year ago
11 months ago
11 months ago
1 year ago