PHPackages                             hepplerdotnet/laravel-config-override - 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. hepplerdotnet/laravel-config-override

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

hepplerdotnet/laravel-config-override
=====================================

Package to store Laravel Configuration in Database

1.2(4y ago)015MITPHPPHP ~8.0

Since Dec 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/HepplerDotNet/laravel-config-override)[ Packagist](https://packagist.org/packages/hepplerdotnet/laravel-config-override)[ Docs](https://github.com/HepplerDotNet/laravel-config-override)[ RSS](/packages/hepplerdotnet-laravel-config-override/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Laravel Config Override
=======================

[](#laravel-config-override)

Store Laravel Configuration in Database and use it thru `config()` helper

Important
=========

[](#important)

This Package uses `Illuminate\Vendor\HepplerDotNet\Providers\ConfigurationProvider`

Before you start yelling "Using Illuminate namespace is bad practice!".

You're right, but let's take a look at `Illuminate\Foundation\Application::registerConfiguredProviders`

```
/**
     * Register all of the configured providers.
     *
     * @return void
     */
    public function registerConfiguredProviders()
    {
        $providers = Collection::make($this->make('config')->get('app.providers'))
                        ->partition(function ($provider) {
                            return strpos($provider, 'Illuminate\\') === 0;
                        });

        $providers->splice(1, 0, [$this->make(PackageManifest::class)->providers()]);

        (new ProviderRepository($this, new Filesystem, $this->getCachedServicesPath()))
                    ->load($providers->collapse()->toArray());
    }
```

1. It creates a collection from your App config providers array
2. Splits this array in 2 chunks \[Everything that starts with Illuminate, rest of it\]
3. Adds all the composer packages service providers in between

This package derived from one of my projects which had some requirements:

1. Login against Active Directory (solved easily with )
2. Make the whole App configuration maintainable thru Webgui, including ldap configuration

All "regular" options to register a Service Provider failed at some point, either `Auth` facade failed or LDAP failed because `config()`had no access to the configuration from database at this point.

So using Illuminate namespace was the only working solution. Period.

Installation
============

[](#installation)

**Requires at least laravel/framework 8.37 because of anonymous migrations**

Run `composer require hepplerdotnet/laravel-config-override`

Note
====

[](#note)

key =&gt; values from database will have precedence over config or .env file!

Groups will be merged with existing configuration

Usage
=====

[](#usage)

Let's say you would change the app locale

```
use HepplerDotNet\LaravelConfigOverride\Models\Group;
Group::create(["name" => "app", "root" => true, "active" => true])
  ->entries()
  ->create(["key" => "locale", "value" => "de", "type" => "String"]);
```

Now you can access it with `config("app.locale")`

Or a more complex example with nested groups

```
Group::create(["name" => "mail", "root" => true, "active" => true])
    ->groups()->create(["name" => "mailers", "root" => false, "active" => true])
    ->groups()->create(["name" => "smtp", "root" => false, "active" => true])
    ->entries()->create(["key" => "host","value" => "localhost", "type" => "String"]);
```

Now you can access it with `config("mail.mailers.smtp.host")`

The Models
==========

[](#the-models)

Group
-----

[](#group)

PropertyDescriptionValuesnameName analog to config file e.g. app or mailStringrootGroup is root elementtrue or falseactiveConfiguration is active and should be loadedtrue or falseEntry
-----

[](#entry)

PropertyDescriptionValueskeyConfiguration KeyStringvalueConfiguration ValueString, Password, Integer, Boolean, ArraytypeValue typeString, Password, Integer, Boolean, Array**Type Password will be stored encrypted in database!**

Config
------

[](#config)

Config is not a real Eloquent Model, it's just a Class which builds the config from database

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~11 days

Total

2

Last Release

1608d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fac8ffb6e5e7e1aac30e253a8c56cc66e78c82235acf1520c85050253cc4a786?d=identicon)[HepplerDotNet](/maintainers/HepplerDotNet)

---

Top Contributors

[![HepplerDotNet](https://avatars.githubusercontent.com/u/12952240?v=4)](https://github.com/HepplerDotNet "HepplerDotNet (9 commits)")

---

Tags

laravellaravel-configlaravel config from database

### Embed Badge

![Health badge](/badges/hepplerdotnet-laravel-config-override/health.svg)

```
[![Health](https://phpackages.com/badges/hepplerdotnet-laravel-config-override/health.svg)](https://phpackages.com/packages/hepplerdotnet-laravel-config-override)
```

###  Alternatives

[tpetry/laravel-postgresql-enhanced

Support for many missing PostgreSQL specific features

9982.0M14](/packages/tpetry-laravel-postgresql-enhanced)[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[biiiiiigmonster/hasin

Laravel framework relation has in implement

154552.4k](/packages/biiiiiigmonster-hasin)[dragon-code/laravel-deploy-operations

Performing any actions during the deployment process

240173.5k2](/packages/dragon-code-laravel-deploy-operations)[bavix/laravel-clickhouse

Eloquent model for ClickHouse

72214.1k2](/packages/bavix-laravel-clickhouse)[stayallive/laravel-eloquent-observable

Register Eloquent model event listeners just-in-time directly from the model.

2928.9k7](/packages/stayallive-laravel-eloquent-observable)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
