2017 © Pedro Peláez
 

library settings

Settings for The Laravel Framework.

image

orchid/settings

Settings for The Laravel Framework.

  • Thursday, August 31, 2017
  • by Mamau
  • Repository
  • 7 Watchers
  • 4 Stars
  • 3,884 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 18 Versions
  • 0 % Grown

The README.md

Laravel Settings

Unit tests Latest Stable Version Total Downloads License, (*1)

The simplest persistent data store using a key to access a value., (*2)

Installation

Run this at the command line:, (*3)

$ composer require orchid/settings

After do the migration:, (*4)

$ php artisan migrate

Usage

To add a new value to the repository you need to use:, (*5)

<?php

use Orchid\Settings\Setting;

Setting::set($key, $value);

The transferred value will be converted to JSON, and upon receipt, decoding will occur, this allows you to place not only simple types, but also arrays in the storage., (*6)

To get the value:, (*7)

<?php

/**
* @param string|array $key
* @param string|null $default
*/
Setting::get($key, $default);
// or using the helper function
setting($key, $default);

By default, each item cached before it is changed, in cases if you need to get a value not from the cache, you need to use the getNoCache method., (*8)

Setting::getNoCache($key, $default = null);

Note. When transferring keys as an array, subsequent updates of values will not automatically flush the cache., (*9)

To delete a value:, (*10)

<?php

/**
* @param string|array $key
* @param string|null $default
*/
Setting::forget($key);

Please note that you can get or delete several values from the repository at once, for this you need to pass an array with the names of the keys as the first argument., (*11)

License

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

The Versions

31/08 2017

dev-master

9999999-dev https://theorchid.github.io/

Settings for The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar tabuna

database laravel settings json key value

31/08 2017

2.2.1

2.2.1.0 https://theorchid.github.io/

Settings for The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

database laravel settings json key value

07/07 2017

2.2

2.2.0.0 https://theorchid.github.io/

Settings for The Laravel Framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

database laravel settings json key value

25/06 2017

2.1

2.1.0.0 https://theorchid.github.io/

Settings for The Laravel Framework.

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

database laravel settings json key value

03/10 2016

dev-analysis-zO55WB

dev-analysis-zO55WB

Settings for The Laravel Framework.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

by Avatar tabuna

database laravel settings json key value

03/10 2016

2.0

2.0.0.0

Settings for The Laravel Framework.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

by Avatar tabuna

database laravel settings json key value

12/08 2016

1.0.11

1.0.11.0

Settings for The Laravel Framework.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

by Avatar tabuna

database laravel settings json key value

01/08 2016

1.0.10

1.0.10.0

Settings for The Laravel Framework.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

by Avatar tabuna

database laravel settings json key value

05/07 2016

1.0.9

1.0.9.0

Settings for The Laravel Framework.

  Sources   Download

MIT

The Requires

 

by Avatar tabuna

database laravel settings json key value

05/07 2016

1.0.7

1.0.7.0

Settings for The Laravel Framework.

  Sources   Download

MIT

The Requires

 

by Avatar tabuna

database laravel settings json key value

05/07 2016

1.0.8

1.0.8.0

Settings for The Laravel Framework.

  Sources   Download

MIT

The Requires

 

by Avatar tabuna

database laravel settings json key value

07/12 2015

1.0.6

1.0.6.0

Settings for The Laravel Framework.

  Sources   Download

MIT

The Requires

 

by Avatar tabuna

database laravel settings json key value

06/12 2015

1.0.5

1.0.5.0

Settings for The Laravel Framework.

  Sources   Download

MIT

The Requires

 

by Avatar tabuna

database laravel settings json key value

06/12 2015

1.0.4

1.0.4.0

Settings for The Laravel Framework.

  Sources   Download

MIT

The Requires

 

by Avatar tabuna

database laravel settings json key value

06/12 2015

1.0.3

1.0.3.0

Settings for The Laravel Framework.

  Sources   Download

MIT

The Requires

 

by Avatar tabuna

laravel settings

03/12 2015

1.0.2

1.0.2.0

Settings for The Laravel Framework.

  Sources   Download

MIT

The Requires

 

by Avatar tabuna

laravel settings

03/12 2015

1.0.1

1.0.1.0

Settings for The Laravel Framework.

  Sources   Download

MIT

The Requires

 

by Avatar tabuna

laravel settings

03/12 2015

1.0

1.0.0.0

Settings for The Laravel Framework.

  Sources   Download

MIT

The Requires

 

by Avatar tabuna

laravel framework settings