New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

ikeraslt/laravel-settings

89 1
Install
composer require ikeraslt/laravel-settings
Latest Version:v1.2.4
PHP:^7.0
Laravel:5
License:MIT
Last Updated:Oct 15, 2018
Links: GitHub  ·  Packagist
Maintainer: ikerasLT

Laravel Settings

Provides accessibility to key - value based settings model

Instalation

Require this package with composer

composer require ikeraslt/laravel-settings

Add the ServiceProvider to the providers array in config/app.php

Ikeraslt\LaravelSettings\ServiceProvider::class,

If you want to use the facade, add this to your facades in config/app.php:

'Settings' => Ikeraslt\LaravelSettings\Facade::class,

Run the migrations. This will add the settings table to your database

php artisan migrate

Usage

Via helper

Get setting:

$value = settings('key');

Set value:

settings('key', 'value');

Get all:

settings()

Via facade

Get setting:

$value = Settings::get('key');

Set value:

Settings::set('key', 'value');

Get all:

Settings::getAll()

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

429,221,767 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

407,699,310 4,663

Version History

Version Released PHP Laravel License
v1.2.4 ^7.0 5.4.*|5.5.*|5.6.*|5.7.* MIT
v1.2.3 ^7.0 5.4.*|5.5.*|5.6.* MIT
v1.2.2 ^7.0 5.4.*|5.5.*|5.6.* MIT
v1.2.1 ^7.0 5.4.*|5.5.*|5.6.* MIT
v1.2 ^7.0 5.4.*|5.5.* MIT