2017 © Pedro Peláez
 

library settings

Settings for Laravel 5

image

webmachine/settings

Settings for Laravel 5

  • Thursday, March 16, 2017
  • by webmachine
  • Repository
  • 2 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 22 % Grown

The README.md

Settings for Laravel 5

Install

Via Composer, (*1)

``` bash $ composer require webmachine/settings, (*2)


Next, you must install the service provider and facade alias: ```php // config/app.php 'providers' => [ ... Webmachine\Settings\SettingsServiceProvider::class, ]; ... 'aliases' => [ ... 'Settings' => Webmachine\Settings\SettingsFacade::class, ];

Publish, (*3)

``` bash $ php artisan vendor:publish --provider="Webmachine\Settings\SettingsServiceProvider", (*4)


## Usage In your models or controllers: ``` php ... use Webmachine\Settings\SettingsFacade as Settings; class Foo extends ... { ... public function myfoo() { $my_setting = Settings::get('mygroup.mysetting'); } }

In your views php Settings::get('mygroup.mysetting'), (*5)

License

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

The Versions

16/03 2017

dev-master

9999999-dev

Settings for Laravel 5

  Sources   Download

MIT

The Requires

 

by Avatar webmachine

laravel settings