PHPackages                             takethelead/laravel-settings - 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. takethelead/laravel-settings

ActiveLibrary

takethelead/laravel-settings
============================

Manage config settings through the database

1.5.0(1y ago)01.1k[4 PRs](https://github.com/takethelead/laravel-settings/pulls)proprietaryPHPPHP ^8.1|^8.2|^8.3

Since Oct 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/takethelead/laravel-settings)[ Packagist](https://packagist.org/packages/takethelead/laravel-settings)[ Docs](https://github.com/takethelead/laravel-settings)[ RSS](/packages/takethelead-laravel-settings/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (10)Versions (14)Used By (0)

Laravel settings
================

[](#laravel-settings)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0a93d403d7fe7a13b798a847ae94b8ef03d650126d1510ec002dbb2bdaef7802/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74616b657468656c6561642f6c61726176656c2d73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/takethelead/laravel-settings)[![GitHub Tests Action Status](https://camo.githubusercontent.com/70cb752ddb489594b9e2977331f851a2c0dd6c3da66eeaa4797ef42dd13e5a6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f74616b657468656c6561642f6c61726176656c2d73657474696e67732f54657374733f6c6162656c3d7465737473)](https://github.com/takethelead/laravel-settings/actions?query=workflow%3ATests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/530df0c672a13796dfbc505f98ded2249c650e64a969a10dde4425ed21dc7202/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74616b657468656c6561642f6c61726176656c2d73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/takethelead/laravel-settings)

Overwrite config settings with values from the database.

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

[](#installation)

You can install the package via composer:

```
composer require takethelead/laravel-settings
```

In order to use this package you will need to publish its configuration file:

```
php artisan vendor:publish --provider="TakeTheLead\Settings\SettingsServiceProvider" --tag="config"
```

And migrate the database

```
php artisan migrate
```

Usage
-----

[](#usage)

### Overwriting values

[](#overwriting-values)

This package allows you to define config values that should be overwritten with a value from the database. The keys of these config values can be defined in `config/laravel-settings.php`, where you can find a key `overwrites`.

#### How does this work?

[](#how-does-this-work)

Imagine the following config file

```
