PHPackages                             letsgoi/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. letsgoi/laravel-settings

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

letsgoi/laravel-settings
========================

Laravel settings package

4.0.1(1y ago)53.2kMITPHPPHP ^8.3CI passing

Since Feb 8Pushed 1y ago4 watchersCompare

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

READMEChangelog (10)Dependencies (6)Versions (20)Used By (0)

Laravel Settings
----------------

[](#laravel-settings)

Move your env variables to database to change them easily using laravel nova

Requirements
------------

[](#requirements)

- PHP &gt;= 8.3
- Laravel &gt;= 10.0
- Laravel nova license registered on project

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

[](#installation)

- Require package with composer:

```
composer require letsgoi/laravel-settings
```

- Add `Letsgoi\LaravelSettings\SettingsServiceProvider::class`to `app.php`

```
    /*
     * Package Service Providers...
     */
    ...
    Letsgoi\LaravelSettings\SettingsServiceProvider::class,
```

- Publish configuration:

```
php artisan vendor:publish --provider="Letsgoi\LaravelSettings\SettingsServiceProvider" --tag="migrations"
```

- Add `SettingNovaResource::class` on `NovaServiceProvider.php`

```
    protected function resources(): void
    {
        Nova::resources([
            ...
            SettingNovaResource::class,
        ]);
    }
```

Usage
-----

[](#usage)

This package use cache memory to save variables, instead of retrieving them from database each time you need to use it:

1. When you save a variable, cache of this variable is cleared.
2. First time you retrieve a variable it is saved to cache.

To register a new variable on Settings:

1. Create a migration with the name and key of the variable:
    1. The available types are: bool, string, float, array

```
    DB::table('settings')->insert([
            'id' => 'APP_URL',
            'type' => 'string'
    ]);
```

2. Run migrations: `php artisan migrate`
3. Access your nova url and fill the variable with the value: For booleans use 0 (false) and 1 (true).
4. Use variable in your code using:

```
    $settingRepository = new SettingRepository();

    $value = $settingRepository->find('key');
```

Testing
-------

[](#testing)

Run tests: `composer test`

###  Health Score

41

—

FairBetter than 88% of packages

Maintenance50

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity69

Established project with proven stability

 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 ~61 days

Recently: every ~14 days

Total

14

Last Release

389d ago

Major Versions

1.2.0 → 2.0.02024-02-06

2.0.1 → 3.0.02024-07-10

3.1.2 → 4.0.02025-02-27

PHP version history (4 changes)1.0.0PHP ^8.0

1.1.1PHP ^8.1

1.2.0PHP ^8.2

3.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/21895df4b67dd1b486aa23eee404be73842e53660da0cb4d6e43037462fece48?d=identicon)[letsgoi](/maintainers/letsgoi)

---

Top Contributors

[![adri-navarro](https://avatars.githubusercontent.com/u/9930545?v=4)](https://github.com/adri-navarro "adri-navarro (11 commits)")

---

Tags

laravelSettingsgoiletsgoi

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[yajra/laravel-datatables-oracle

jQuery DataTables API for Laravel

4.9k33.8M335](/packages/yajra-laravel-datatables-oracle)[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M683](/packages/barryvdh-laravel-ide-helper)[spatie/laravel-enum

Laravel Enum support

3655.4M31](/packages/spatie-laravel-enum)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[datomatic/nova-enum-field

A Laravel Nova PHP 8.1 enum field with filters

20134.2k](/packages/datomatic-nova-enum-field)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k1](/packages/bjuppa-laravel-blog)

PHPackages © 2026

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