LaravelPackages.net
Acme Inc.
Toggle sidebar
pixeo/laravel-settings

Simple persisting settings package for a Laravel application

3.069
2
4.0.0
About pixeo/laravel-settings

pixeo/laravel-settings is a Laravel package for simple persisting settings package for a laravel application. It currently has 2 GitHub stars and 3.069 downloads on Packagist (latest version 4.0.0). Install it with composer require pixeo/laravel-settings. Discover more Laravel packages by pixeo or browse all Laravel packages to compare alternatives.

Last updated

Laravel settings

Latest Version on Packagist Build Status Total Downloads

Persist your settings in the database

Installation

You can install the package via composer:

composer require pixeo/laravel-settings

The package will automatically register itself.

You can publish the config-file with:

php artisan vendor:publish --provider="Pixeo\Settings\SettingServiceProvider" --tag="config"

This is the contents of the published config file:


<?php

return [
    /*
     * The model that is used to fetch the settings
     */
    'model' => Pixeo\Settings\Setting::class,

    /**
     * The cache key the package will use
     */
    'cache_key' => 'pixeo.settings',
];

Usage

\Pixeo\Settings\Setting::create(['key' => 'foo', 'value' => 'bar']);
echo setting('foo'); // => bar

Testing

composer test

Credits

License

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

Star History Chart