feat: add inerba/filament-db-config
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
"backstage/filament-mails": "^3.0",
|
"backstage/filament-mails": "^3.0",
|
||||||
"filament/filament": "~4.0",
|
"filament/filament": "~4.0",
|
||||||
"gboquizosanchez/filament-log-viewer": "^2.1",
|
"gboquizosanchez/filament-log-viewer": "^2.1",
|
||||||
|
"inerba/filament-db-config": "^1.1",
|
||||||
"jacobtims/filament-logger": "^1.0",
|
"jacobtims/filament-logger": "^1.0",
|
||||||
"laravel/fortify": "^1.30",
|
"laravel/fortify": "^1.30",
|
||||||
"laravel/framework": "^12.0",
|
"laravel/framework": "^12.0",
|
||||||
|
|||||||
71
composer.lock
generated
71
composer.lock
generated
@@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "5260af5141165a63d2ab72e6650ae849",
|
"content-hash": "5f204de64c42fb825f8a047d09cd57fc",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "anourvalar/eloquent-serialize",
|
"name": "anourvalar/eloquent-serialize",
|
||||||
@@ -2293,6 +2293,75 @@
|
|||||||
],
|
],
|
||||||
"time": "2025-08-22T14:27:06+00:00"
|
"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",
|
"name": "jacobtims/filament-logger",
|
||||||
"version": "v1.0.0",
|
"version": "v1.0.0",
|
||||||
|
|||||||
@@ -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();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user