PHPackages                             hxm/database-system-config - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. hxm/database-system-config

ActiveLibrary[Database &amp; ORM](/categories/database)

hxm/database-system-config
==========================

save system config value on database

v0.2.1(1mo ago)017MITPHPPHP ^7.0|^8.0

Since Sep 30Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/hoanxuanmai/laravel-database-system-config)[ Packagist](https://packagist.org/packages/hxm/database-system-config)[ RSS](/packages/hxm-database-system-config/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

Laravel Database System Config
==============================

[](#laravel-database-system-config)

Stored all configs on your database.

Able to store:

- value can be bool, array, object, datetime, int, float
- set flexible value with dot key
- merge the config value with the system, so that the data can be accessed via Laravel's `config()` helper

Installation
------------

[](#installation)

```
composer require hxm/database-system-config
```

- Run migrations to create database table:

```
php artisan migrate
```

- Publishing the config file

```
php artisan vendor:publish --provider="HXM\DatabaseSystemConfig\Providers\DatabaseSystemConfigServiceProvider" --tag="database_system_config"
```

- to disable auto merge config to system, you set value of `merge_config` to `false`;

```
