A new 'locale' field of string type with a maximum length of 2 characters and a default value as 'ru' has been added to the users table through a migration file. This field has been also added to the User model. The addition of the 'locale' field will allow users to specify their preferred language in their profile settings.

This commit is contained in:
kor-elf committed 2023-06-29 00:06:27 +06:00
1 parent 90cab02d62
commit 9b56522f02
2 files changed
+2

No files matched your search

@@ -19,6 +19,7 @@ return new class extends Migration
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->rememberToken();
$table->string('locale', 2)->default('ru');
$table->string('timezone')->nullable();
$table->timestamps();
$table->softDeletes();