feat: add inerba/filament-db-config

This commit is contained in:
idevakk
2025-09-29 14:57:57 +05:30
parent 35cc3d0f2c
commit 476cc0ad99
3 changed files with 98 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up()
{
$tableName = config('db-config.table_name', 'db_config');
Schema::create($tableName, function (Blueprint $table) {
$table->id();
$table->string('group');
$table->string('key');
$table->json('settings')->nullable();
$table->unique(['group', 'key']);
$table->timestamps();
});
}
};