2017 © Pedro Peláez
 

library setting

ibrand setting component

image

ibrand/setting

ibrand setting component

  • Friday, May 4, 2018
  • by shjchen
  • Repository
  • 1 Watchers
  • 1 Stars
  • 17 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 42 % Grown

The README.md

Laravel Settings

Laravel 5.x Settings help your key value to persist., (*1)

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version Latest Unstable Version License, (*2)

Installation

Composer install

$ composer require ibrand/setting -vvv

If your Laravel version below 5.5, you need add the follow line to the section providers of config/app.php:, (*3)

iBrand\Component\Setting\ServiceProvider::class,

Publishing config file

If you want to edit default config file, just publish it you app config folder., (*4)

php artisan vendor:publish --provider="iBrand\Component\Setting\ServiceProvider"

Creating table for database.

Execute artisan command, (*5)

php artisan migrate

Usage

Change database table name.

If you want to change database table name, you can change config/ibrand/setting.php after publishing config file., (*6)

return [

    'table_name' => 'el_system_settings',

    'cache' => true,
];

Use settings() help method.

Set value

settings(['key'=>'value'])

Get Value

settings('key')

Use App make Method.

Set value

app('system_setting')->setSetting(['key'=>'value'])

Get Value

app('system_setting')->getSetting('key')

Disable cache.

Set cache=>false in config/ibrand/setting.php file., (*7)

return [

    'table_name' => 'el_system_settings',

    'cache' => false,
];

果酱云社区

点击跳转 , (*8)

  • 全网真正免费的IT课程平台, (*9)

  • 专注于综合IT技术的在线课程,致力于打造优质、高效的IT在线教育平台, (*10)

  • 课程方向包含Python、Java、前端、大数据、数据分析、人工智能等热门IT课程, (*11)

  • 300+免费课程任你选择, (*12)

点击跳转 , (*13)

The Versions

04/05 2018

dev-master

9999999-dev

ibrand setting component

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Avatar shjchen

component setting ibrand

04/05 2018

v1.0.1

1.0.1.0

ibrand setting component

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Avatar shjchen

component setting ibrand

29/01 2018

v1.0.0

1.0.0.0

ibrand setting component

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Avatar shjchen

component setting ibrand