PHPackages                             chapdel/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. [Database &amp; ORM](/categories/database)
4. /
5. chapdel/laravel-settings

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

chapdel/laravel-settings
========================

Store Laravel application settings in the database.

1.0(9mo ago)0141MITPHPPHP ^8.1

Since Oct 2Pushed 9mo agoCompare

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

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

Settings for Laravel
====================

[](#settings-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/746da86ad02a333a934299d4ffa07c5878028c2653c05e8d219084522c1fa8da/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726177696c6b2f6c61726176656c2d73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rawilk/laravel-settings)[![Tests](https://github.com/rawilk/laravel-settings/workflows/Tests/badge.svg?style=flat-square)](https://github.com/rawilk/laravel-settings/workflows/Tests/badge.svg?style=flat-square)[![Total Downloads](https://camo.githubusercontent.com/4fcfbb5121d006f73ad951beb148ce6f77e258667906d368495a1de2b1b34499/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726177696c6b2f6c61726176656c2d73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rawilk/laravel-settings)[![PHP from Packagist](https://camo.githubusercontent.com/45f794f72ef3b56777aa4131bb894d0fb70ddb564b0823599e6d0cf9c1eedaae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f726177696c6b2f6c61726176656c2d73657474696e67733f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rawilk/laravel-settings)[![License](https://camo.githubusercontent.com/4cd656c20589755a81d943ec918d4ac3982f3b66555b30fe2dc64d197beb7f1d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f726177696c6b2f6c61726176656c2d73657474696e67733f7374796c653d666c61742d737175617265)](https://github.com/rawilk/laravel-settings/blob/main/LICENSE.md)

[![social image](https://camo.githubusercontent.com/5c102a1b8ebcd147a13d66b1d9bf43772a76f61539099875e37387b146516a8d/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f53657474696e6773253230666f722532304c61726176656c2e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d726177696c6b2532466c61726176656c2d73657474696e6773267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d53746f72652b4c61726176656c2b6170706c69636174696f6e2b73657474696e67732b696e2b7468652b64617461626173652e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d636f67)](https://camo.githubusercontent.com/5c102a1b8ebcd147a13d66b1d9bf43772a76f61539099875e37387b146516a8d/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f53657474696e6773253230666f722532304c61726176656c2e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d726177696c6b2532466c61726176656c2d73657474696e6773267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d53746f72652b4c61726176656c2b6170706c69636174696f6e2b73657474696e67732b696e2b7468652b64617461626173652e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d636f67)

Settings for Laravel allows you to store your application settings in the database. It works alongside of the built-in configuration system that Laravel offers. With this package, you can store application specific settings that wouldn't make sense to store in a configuration file, or that you want end-users to be able to update through your application's UI.

The package also offers caching on a per-setting basis out of the box, so no unnecessary extra queries are performed once a setting has been retrieved. The caching works no matter which driver you choose to use. The package can also encrypt your settings automatically for you as well if you need to store sensitive data such as passwords for a third-party service you need to be able to use later.

To get and retrieve stored settings, you can do it easily with the Settings Facade or by using the `settings()` helper function:

```
// Setting
Settings::set('foo', 'bar');
settings()->set('foo', 'bar');
settings(['foo' => 'bar']);

// Retrieving
Settings::get('foo'); // 'bar'
settings()->get('foo');
settings('foo');
```

Documentation
-------------

[](#documentation)

For documentation, please visit:

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

[](#installation)

You can install the package via composer:

```
composer require rawilk/laravel-settings
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="settings-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="settings-config"
```

You can view the default configuration here:

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Randall Wilk](https://github.com/rawilk)
- [All Contributors](../../contributors)

Alternatives
------------

[](#alternatives)

- [spatie/laravel-settings](https://github.com/spatie/laravel-settings)

Disclaimer
----------

[](#disclaimer)

This package is not affiliated with, maintained, authorized, endorsed or sponsored by Laravel or any of its affiliates.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance58

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

275d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20987014?v=4)[Chapdel KAMGA](/maintainers/chapdel)[@chapdel](https://github.com/chapdel)

---

Top Contributors

[![chapdel](https://avatars.githubusercontent.com/u/20987014?v=4)](https://github.com/chapdel "chapdel (2 commits)")

---

Tags

Settingslaravel-settingsdatabase settingsrawilkeloquent model settings

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/chapdel-laravel-settings/health.svg)

```
[![Health](https://phpackages.com/badges/chapdel-laravel-settings/health.svg)](https://phpackages.com/packages/chapdel-laravel-settings)
```

###  Alternatives

[spatie/laravel-medialibrary

Associate files with Eloquent models

6.1k43.2M631](/packages/spatie-laravel-medialibrary)[rawilk/laravel-settings

Store Laravel application settings in the database.

298216.5k1](/packages/rawilk-laravel-settings)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)

PHPackages © 2026

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