PHPackages                             newsmodulesettings/l4-newsmodulesettings - 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. newsmodulesettings/l4-newsmodulesettings

ActiveLibrary

newsmodulesettings/l4-newsmodulesettings
========================================

Persistant newsmodulesettings in Laravel.

06PHP

Since Jan 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/newssettings/newsmodulesettings)[ Packagist](https://packagist.org/packages/newsmodulesettings/l4-newsmodulesettings)[ RSS](/packages/newsmodulesettings-l4-newsmodulesettings/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#laravel-settings)

[![Build Status](https://camo.githubusercontent.com/98a650fae800a791f287a6cb17e401ac3474c735553ffcc91d1ea95062757390/68747470733a2f2f7472617669732d63692e6f72672f616e6c7574726f2f6c61726176656c2d73657474696e67732e706e673f6272616e63683d6d6173746572)](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)

Persistant, application-wide settings for Laravel.

Despite the package name, this package works with Laravel 5.x!

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

[](#installation)

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`.

```
