PHPackages                             visual-ideas/laravel-site-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. visual-ideas/laravel-site-settings

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

visual-ideas/laravel-site-settings
==================================

Easy Laravel nested settings (stored in MYSQL) package with MoonShine Laravel Admin GUI

1.11.2(2y ago)144322[1 issues](https://github.com/visual-ideas/laravel-site-settings/issues)MITPHPPHP ^8.1

Since Dec 11Pushed 2y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (38)Used By (0)

Easy laravel cached settings
============================

[](#easy-laravel-cached-settings)

Easy laravel cached settings (stored in MYSQL) package with MoonShine/Filament Laravel Admin GUI

[![Latest Version on Packagist](https://camo.githubusercontent.com/d0f354cbb69e93a94a671cec05d2c96c9e1b7423a25e3e771803aa35bd39d5f8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76697375616c2d69646561732f6c61726176656c2d736974652d73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/visual-ideas/laravel-site-settings)[![Total Downloads](https://camo.githubusercontent.com/1051e5216890fb0f4f7cd5f91b529fcd2f7255459830632f76026567e3abdf41/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f76697375616c2d69646561732f6c61726176656c2d736974652d73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/visual-ideas/laravel-site-settings)

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

[](#installation)

You can install the package via composer:

```
composer require visual-ideas/laravel-site-settings
```

You must run the migrations with:

```
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --provider="VI\LaravelSiteSettings\LaravelSiteSettingsProvider" --tag="config"
```

This is the contents of the published config file:

```
return [
    'cache_key' => env('LSS_CACHE_KEY','laravel_site_settings_data'),

    // Set to true if you're using Filament (https://filamentphp.com/)
    'filament' => false,
];
```

Usage
-----

[](#usage)

You can use this package as default laravel config() function!

```
function settings($key = null, $default = null)
{
    if (is_null($key)) {
        return app('Settings')->all();
    }

    if (is_array($key)) {
        return app('Settings')->set($key);
    }

    return app('Settings')->get($key, $default);
}
```

or Blade directive @settings

```
@settings('group.setting')
```

For PHPStorm you can set this blade directive with [This instruction](https://www.jetbrains.com/help/phpstorm/blade-page.html)

or as part of native Laravel config()

```
@config('settings.group.setting')
```

**Not working in console!**

Update settings
---------------

[](#update-settings)

You can use models VI\\LaravelSiteSettings\\Models\\SettingGroup and VI\\LaravelSiteSettings\\Models\\Setting

or set settings values with the settings() function:

```
settings(['group.setting' => 'Value']);
settings(['setting' => 'Value']);
```

Usage with MoonShine Laravel Admin panel
----------------------------------------

[](#usage-with-moonshine-laravel-admin-panel)

Please see [MoonShine](https://moonshine.cutcode.ru/)

You can use settings in your MoonShine admin panel, like this:

```
MenuGroup::make('Settings', [
    MenuItem::make(
        'Setting groups',
        new \VI\LaravelSiteSettings\MoonShine\Resources\SettingGroupResource(),
        'heroicons.outline.wrench-screwdriver'
    ),
    MenuItem::make(
        'Settings',
        new \VI\LaravelSiteSettings\MoonShine\Resources\SettingResource(),
        'heroicons.outline.wrench'
    ),
], 'heroicons.outline.cog-8-tooth'),
```

Usage with Filament Laravel Admin panel
---------------------------------------

[](#usage-with-filament-laravel-admin-panel)

Please see [Filament](https://filamentphp.com)

You can use settings in your Filament admin panel!

Just change config file:

```
    //...
    // Set to true if you're using Filament (https://filamentphp.com/)
    'filament' => true,
    //...
```

Seeding settings
----------------

[](#seeding-settings)

I recommend saving the settings in the seeders using the [orangehill/iseed](https://github.com/orangehill/iseed) package:

```
php artisan iseed setting_groups,settings
```

But you can use seeder or migration to set your settings

```
settings([
    ['group.setting1' => 'Value1'],
    ['group.setting2' => 'Value2'],
    ['group.setting3' => 'Value3'],
    ['setting1' => 'Value4'],
    ['setting2' => 'Value5'],
    ['setting3' => 'Value6'],
    ['setting4' => 'Value7'],
    ['setting5' => 'Value8']
]);
```

Credits
-------

[](#credits)

- [Alex](https://github.com/alexvenga)

License
-------

[](#license)

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

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 96.1% 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 ~12 days

Recently: every ~70 days

Total

37

Last Release

806d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12836836?v=4)[AlexVenga](/maintainers/AlexVenga)[@alexvenga](https://github.com/alexvenga)

---

Top Contributors

[![alexvenga](https://avatars.githubusercontent.com/u/12836836?v=4)](https://github.com/alexvenga "alexvenga (73 commits)")[![SWEET1S](https://avatars.githubusercontent.com/u/84906111?v=4)](https://github.com/SWEET1S "SWEET1S (3 commits)")

---

Tags

filamentfilamentphplaravellaravel-adminmoonshinemysqlphpsettingsphplaravelSettingspackagemysqlfilamentmoonshineVisualIdeas

### Embed Badge

![Health badge](/badges/visual-ideas-laravel-site-settings/health.svg)

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

###  Alternatives

[awssat/laravel-sync-migration

Laravel tool helps to sync migrations without refreshing the database

10923.2k](/packages/awssat-laravel-sync-migration)[visual-ideas/moonshine-spatie-medialibrary

Spatie\\MediaLibrary field for MoonShine Laravel admin panel

2014.1k](/packages/visual-ideas-moonshine-spatie-medialibrary)[umbrellio/laravel-ltree

Extension LTree (Postgres) for Laravel

34111.6k](/packages/umbrellio-laravel-ltree)[tomatophp/filament-locations

Database Seeds for Countries / Cities / Areas / Languages / Currancy with ready to use resources for FilamentPHP

2320.8k6](/packages/tomatophp-filament-locations)

PHPackages © 2026

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