feat: automatic instant Jibit verification on customer profile update without admin manual approval

This commit is contained in:
2026-11-10 14:33:09 +03:30
parent 487d899ded
commit bdf70a4c05
2 changed files with 47 additions and 8 deletions
@@ -0,0 +1,45 @@
<?php
use App\Models\Setting;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
if (! Schema::hasTable('settings')) {
return;
}
Setting::updateOrCreate(
['key' => 'auto_active_customer'],
[
'value' => 'true',
'title_fa' => 'فعال‌سازی خودکار کاربر پس از ثبت‌نام',
'description' => 'روشن: بعد از ثبت‌نام کاربر می‌تواند وارد اپ شود بدون نیاز به تأیید دستی ادمین.',
'can_edit' => 1,
'is_active' => 1,
'type' => 'switch',
]
);
Setting::updateOrCreate(
['key' => 'register_jibit_verify'],
[
'value' => 'true',
'title_fa' => 'احراز هویت جیبیت در ثبت‌نام و پروفایل',
'description' => 'روشن: تطبیق کد ملی با شماره همراه از طریق سامانه جیبیت.',
'can_edit' => 1,
'is_active' => 1,
'type' => 'switch',
]
);
}
public function down(): void
{
// No destructive rollback needed
}
};