feat: enhance plugin management

- Add command support for plugin management
- Optimize plugin management page layout
- Add email copy functionality for users
- Convert payment methods and Telegram Bot to plugin system
This commit is contained in:
xboard
2025-07-26 18:49:58 +08:00
parent 02d853d46a
commit 58868268dd
56 changed files with 3677 additions and 1329 deletions

View File

@@ -0,0 +1,24 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('v2_plugins', function (Blueprint $table) {
$table->string('type', 20)->default('feature')->after('code')->comment('插件类型feature功能性payment支付型');
$table->index(['type', 'is_enabled']);
});
}
public function down(): void
{
Schema::table('v2_plugins', function (Blueprint $table) {
$table->dropIndex(['type', 'is_enabled']);
$table->dropColumn('type');
});
}
};