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

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

rawilk/laravel-settings
=======================

Store Laravel application settings in the database.

v3.4.1(1y ago)288188.1k↓15.1%19[6 issues](https://github.com/rawilk/laravel-settings/issues)[5 PRs](https://github.com/rawilk/laravel-settings/pulls)1MITPHPPHP ^8.1CI passing

Since Aug 2Pushed 1mo ago4 watchersCompare

[ Source](https://github.com/rawilk/laravel-settings)[ Packagist](https://packagist.org/packages/rawilk/laravel-settings)[ Docs](https://github.com/rawilk/laravel-settings)[ GitHub Sponsors](https://github.com/rawilk)[ RSS](/packages/rawilk-laravel-settings/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (26)Used By (1)

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

59

—

FairBetter than 99% of packages

Maintenance69

Regular maintenance activity

Popularity54

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 77.2% 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 ~79 days

Recently: every ~120 days

Total

22

Last Release

447d ago

Major Versions

1.0.3 → 2.0.02020-12-01

v1.x-dev → v2.x-dev2023-09-29

v2.x-dev → v3.0.02023-09-29

PHP version history (6 changes)1.0.0PHP ^7.4

2.0.0PHP ^8.0

v2.1.0PHP ^8.0|^8.1

v2.2.2PHP ^8.0|^8.1|^8.2

v3.0.0PHP ^8.1|^8.2|^8.3

v3.4.1PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e2f599d4d290bbb514a933d4f21c3f18fb093f5f8a9994cb17f5469853c749c?d=identicon)[rawilk](/maintainers/rawilk)

---

Top Contributors

[![rawilk](https://avatars.githubusercontent.com/u/22842525?v=4)](https://github.com/rawilk "rawilk (152 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (26 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (17 commits)")[![demianottema](https://avatars.githubusercontent.com/u/44736169?v=4)](https://github.com/demianottema "demianottema (1 commits)")[![lakuapik](https://avatars.githubusercontent.com/u/20186786?v=4)](https://github.com/lakuapik "lakuapik (1 commits)")

---

Tags

database-settingseloquent-settingslaravel-settingssettingsSettingslaravel-settingsdatabase settingsrawilkeloquent model settings

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[outerweb/settings

Application wide settings stored in your database

4899.2k5](/packages/outerweb-settings)[jerome/filterable

Streamline dynamic Eloquent query filtering with seamless API request integration and advanced caching strategies.

19226.1k](/packages/jerome-filterable)[rennokki/eloquent-settings

Eloquent Settings allows you to bind key-value pairs to any Laravel Eloquent model. It supports even casting for boolean, float or integer types.

804.2k](/packages/rennokki-eloquent-settings)

PHPackages © 2026

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