PHPackages                             windstep/l5-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. windstep/l5-settings

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

windstep/l5-settings
====================

Persistent settings in Laravel.

v2.1.1(4y ago)078MITPHP

Since Jan 18Pushed 4y agoCompare

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

READMEChangelog (1)Dependencies (5)Versions (55)Used By (0)

Laravel Settings
================

[](#laravel-settings)

[![Build Status](https://camo.githubusercontent.com/5b3204b833e3b3a2d4abacd905e79b1089890a1fc8dc455eb2ce6bc1b18d2a53/68747470733a2f2f6170692e7472617669732d63692e6f72672f616e6c7574726f2f6c61726176656c2d73657474696e67732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/anlutro/laravel-settings)[![Latest Stable Version](https://camo.githubusercontent.com/9c6b2f31a8f290323c68856c148055e9b61868c132ee8e384a775fb2c2b8e7f7/68747470733a2f2f706f7365722e707567782e6f72672f616e6c7574726f2f6c342d73657474696e67732f762f737461626c652e737667)](https://github.com/anlutro/laravel-settings/releases)[![License](https://camo.githubusercontent.com/32fe9b78a4b2edce241127c192a13b6f9707dde57aad4c815da704249e92c2d6/68747470733a2f2f706f7365722e707567782e6f72672f616e6c7574726f2f6c342d73657474696e67732f6c6963656e73652e737667)](http://opensource.org/licenses/MIT)

Persistent, application-wide settings for Laravel.

Despite the package name, this package should work with Laravel 4, 5, 6, 7 and 8 (though some versions are not automatically tested).

Common problems
---------------

[](#common-problems)

- Class not found errors: [anlutro#38](https://github.com/anlutro/laravel-settings/issues/38)

Installation - Laravel &gt;= 5.5
--------------------------------

[](#installation---laravel--55)

1. `composer require anlutro/l4-settings`
2. Publish the config file by running `php artisan vendor:publish --provider="anlutro\LaravelSettings\ServiceProvider" --tag="config"`. The config file will give you control over which storage engine to use as well as some storage-specific settings.

Installation - Laravel &lt; 5.5
-------------------------------

[](#installation---laravel--55-1)

1. `composer require anlutro/l4-settings`
2. Add `anlutro\LaravelSettings\ServiceProvider` to the array of providers in `config/app.php`.
3. Publish the config file by running `php artisan config:publish anlutro/l4-settings` (Laravel 4.x) or `php artisan vendor:publish` (Laravel 5.x). The config file will give you control over which storage engine to use as well as some storage-specific settings.
4. Optional: add `'Setting' => 'anlutro\LaravelSettings\Facade'` to the array of aliases in `config/app.php`.

Usage
-----

[](#usage)

You can either access the setting store via its facade or inject it by type-hinting towards the abstract class `anlutro\LaravelSettings\SettingStore`.

```
