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

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

scriptingbeating/laravel-global-settings
========================================

It stores all your laravel settings in database and provides a simple api to work with those settings. It also type cast your values into the specified format.

1.0(5y ago)03MITPHPPHP ^7.1

Since Aug 31Pushed 5y ago1 watchersCompare

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

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

Laravel Global Settings
=======================

[](#laravel-global-settings)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6d8b7239b760fa5be26c2c4c042a9b356dac20ed2506a4886245688a3389d87e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736372697074696e6762656174696e672f6c61726176656c2d676c6f62616c2d73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/scriptingbeating/laravel-global-settings)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE.md)

It stores all your laravel settings in database and provides a simple api to work with those settings. It also type cast your values into the specified format.

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

[](#installation)

You can install the package via composer:

```
composer require scriptingbeating/laravel-global-settings
```

Publish the migration:

```
php artisan vendor:publish --provider="ScriptingBeating\GlobalSetting\GlobalSettingServiceProvider" --tag="migrations"
```

Run your migrations:

```
php artisan migrate
```

You will get a table `global_settings` in your database which mainly three columns `key` to store setting name, `value` to store setting value and `type` in which value should be type casted.

Supported Casting Type:

```
string
int or integer
bool or boolean
array
object
```

Usage
-----

[](#usage)

```
global_setting()->all();
global_setting($key); // global_setting('app_name');
global_setting()->get($key, $default = null);
global_setting()->set($key, $value);
global_setting()->set($key, $value, $type = 'string');
global_setting()->has($key);
global_setting()->remove($key);
```

Or You can also use `GlobalSetting` Facade.

```
GlobalSetting::all();
GlobalSetting::get($key, $default = null);
GlobalSetting::set($key, $value);
GlobalSetting::set($key, $value, $type = 'string');
GlobalSetting::has($key);
GlobalSetting::remove($key);
```

### Changelog

[](#changelog)

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

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

[](#contributing)

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

### Security

[](#security)

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

Credits
-------

[](#credits)

- [Mohan Sharma](https://github.com/scriptingbeating)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

2077d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c8caa5e09aed6ab1ce3f0dd89723f15466d4e5bd4c8de1ad08ff3de9331560c9?d=identicon)[ScriptingBeating](/maintainers/ScriptingBeating)

---

Top Contributors

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

---

Tags

laravel global settingsscriptingbeatinglaravel-dynamic-settingslaravel-app-settings

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

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

423715.4k1](/packages/clickbar-laravel-magellan)[genealabs/laravel-pivot-events

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

1404.9M8](/packages/genealabs-laravel-pivot-events)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)

PHPackages © 2026

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