From 4eb6bac149c6a2443e1663e1ddabbacba0942409 Mon Sep 17 00:00:00 2001 From: developer Date: Tue, 21 Apr 2026 14:32:58 +0800 Subject: [PATCH] =?UTF-8?q?=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20lang-=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=B0=D0=B2=D1=82=D0=BE=D1=80=D0=B8=D0=B7=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2024_10_23_170000_create_deals_table.php | 16 +++++------ ...add_unique_untill_field_to_deals_table.php | 27 +++++++++++++++++++ lang/ru/auth.php | 4 +-- lang/ru/passwords.php | 10 +++---- 4 files changed, 42 insertions(+), 15 deletions(-) create mode 100644 app/Modules/Main/Database/Migrations/2026_04_21_000001_add_unique_untill_field_to_deals_table.php diff --git a/app/Modules/Main/Database/Migrations/2024_10_23_170000_create_deals_table.php b/app/Modules/Main/Database/Migrations/2024_10_23_170000_create_deals_table.php index 81d9f0e..0103ea9 100644 --- a/app/Modules/Main/Database/Migrations/2024_10_23_170000_create_deals_table.php +++ b/app/Modules/Main/Database/Migrations/2024_10_23_170000_create_deals_table.php @@ -13,14 +13,14 @@ public function up(): void { Schema::create('deals', function (Blueprint $table) { - $table->id(); - $table->foreignId('client_id')->references('id')->on('users'); - $table->foreignId('complex_id')->references('id')->on('complexes')->onDelete('cascade'); - $table->foreignId('agent_id')->references('id')->on('agents')->onDelete('cascade'); - $table->string('bitrix_id')->nullable(); - $table->string('confirm_token')->nullable(); - $table->enum('status', ['NEW', 'MODERATION', 'UNIQUE', 'NOT UNIQUE'])->default('NEW'); - $table->timestamps(); + $table->id(); + $table->foreignId('client_id')->references('id')->on('users'); + $table->foreignId('complex_id')->references('id')->on('complexes')->onDelete('cascade'); + $table->foreignId('agent_id')->references('id')->on('agents')->onDelete('cascade'); + $table->string('bitrix_id')->nullable(); + $table->string('confirm_token')->nullable(); + $table->enum('status', ['NEW', 'MODERATION', 'UNIQUE', 'NOT UNIQUE'])->default('NEW'); + $table->timestamps(); }); } diff --git a/app/Modules/Main/Database/Migrations/2026_04_21_000001_add_unique_untill_field_to_deals_table.php b/app/Modules/Main/Database/Migrations/2026_04_21_000001_add_unique_untill_field_to_deals_table.php new file mode 100644 index 0000000..dbfcde9 --- /dev/null +++ b/app/Modules/Main/Database/Migrations/2026_04_21_000001_add_unique_untill_field_to_deals_table.php @@ -0,0 +1,27 @@ +date('unique_untill')->nullable(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('docs'); + } +}; diff --git a/lang/ru/auth.php b/lang/ru/auth.php index 6598e2c..6f76adc 100644 --- a/lang/ru/auth.php +++ b/lang/ru/auth.php @@ -13,8 +13,8 @@ | */ - 'failed' => 'These credentials do not match our records.', + 'failed' => 'Электронная почта или пароль указаны неверно.', 'password' => 'The provided password is incorrect.', - 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', + 'throttle' => 'Слишком много попыток входа. Попробуйте войти повторно немного позже.', ]; diff --git a/lang/ru/passwords.php b/lang/ru/passwords.php index f1223bd..27c258c 100644 --- a/lang/ru/passwords.php +++ b/lang/ru/passwords.php @@ -13,10 +13,10 @@ | */ - 'reset' => 'Your password has been reset.', - 'sent' => 'We have emailed your password reset link.', - 'throttled' => 'Please wait before retrying.', - 'token' => 'This password reset token is invalid.', - 'user' => "We can't find a user with that email address.", + 'reset' => 'Ваш пароль был изменен.', + 'sent' => 'Мы отправили ссылку для сброса пароля на указанную электронную почту', + 'throttled' => 'Пожалуйста, попробуйте сделать это немного позже.', + 'token' => 'Ссылка для восстановления пароля устарела.', + 'user' => "Мы не нашли пользователя с такой электронной почтой.", ];