diff --git a/composer.json b/composer.json index d93ad16..076259e 100644 --- a/composer.json +++ b/composer.json @@ -10,6 +10,7 @@ "backstage/filament-mails": "^3.0", "filament/filament": "~4.0", "gboquizosanchez/filament-log-viewer": "^2.1", + "inerba/filament-db-config": "^1.1", "jacobtims/filament-logger": "^1.0", "laravel/fortify": "^1.30", "laravel/framework": "^12.0", diff --git a/composer.lock b/composer.lock index 2b9c6a0..c5a6e42 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "5260af5141165a63d2ab72e6650ae849", + "content-hash": "5f204de64c42fb825f8a047d09cd57fc", "packages": [ { "name": "anourvalar/eloquent-serialize", @@ -2293,6 +2293,75 @@ ], "time": "2025-08-22T14:27:06+00:00" }, + { + "name": "inerba/filament-db-config", + "version": "v1.1.7", + "source": { + "type": "git", + "url": "https://github.com/inerba/filament-db-config.git", + "reference": "ffdb9a23ec3a0abc206876233e0caeb0ca7ed300" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/inerba/filament-db-config/zipball/ffdb9a23ec3a0abc206876233e0caeb0ca7ed300", + "reference": "ffdb9a23ec3a0abc206876233e0caeb0ca7ed300", + "shasum": "" + }, + "require": { + "filament/filament": "^4.0", + "php": "^8.2", + "spatie/laravel-package-tools": "^1.15.0" + }, + "require-dev": { + "laravel/pint": "^1.14", + "orchestra/testbench": "^10.0", + "pestphp/pest": "^4.0", + "phpstan/phpstan": "^2.1" + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "DbConfig": "Inerba\\DbConfig\\Facades\\DbConfig" + }, + "providers": [ + "Inerba\\DbConfig\\DbConfigServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Inerba\\DbConfig\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Francesco Apruzzese", + "email": "inerba@gmail.com", + "role": "Developer" + } + ], + "description": "A Filament plugin for database-backed application settings and editable content, with caching and easy page generation.", + "homepage": "https://github.com/inerba/filament-db-config", + "keywords": [ + "filament", + "filament-plugin", + "laravel", + "laravel-filament" + ], + "support": { + "issues": "https://github.com/inerba/filament-db-config/issues", + "source": "https://github.com/inerba/filament-db-config" + }, + "time": "2025-09-08T11:05:25+00:00" + }, { "name": "jacobtims/filament-logger", "version": "v1.0.0", diff --git a/database/migrations/2025_09_29_092239_create_db_config_table.php b/database/migrations/2025_09_29_092239_create_db_config_table.php new file mode 100644 index 0000000..9b33914 --- /dev/null +++ b/database/migrations/2025_09_29_092239_create_db_config_table.php @@ -0,0 +1,27 @@ +id(); + + $table->string('group'); + + $table->string('key'); + + $table->json('settings')->nullable(); + + $table->unique(['group', 'key']); + + $table->timestamps(); + }); + } +};