diff --git a/app/Models/User.php b/app/Models/User.php index 8d6ac1d..af1babe 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -24,6 +24,7 @@ final class User extends Authenticatable 'password', 'timezone', 'is_active', + 'locale', ]; /** diff --git a/database/migrations/2014_10_12_000000_create_users_table.php b/database/migrations/2014_10_12_000000_create_users_table.php index 8b37449..28d52cf 100644 --- a/database/migrations/2014_10_12_000000_create_users_table.php +++ b/database/migrations/2014_10_12_000000_create_users_table.php @@ -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();