a2way/laravel-app-settings

Save data in a table called "app_settings" and retrieve them.
208 3
Install
composer require a2way/laravel-app-settings
Latest Version:1.1.0
Last Updated:Aug 31, 2015
Links: GitHub  ·  Packagist
Maintainer: budhajeewa

#A2Way Laravel App Settings ##Installing

  1. Require the package.
composer require a2way/laravel-app-settings
  1. Add the service provider the providers array in your config/app.php file.
'A2Way\LaravelAppSettings\LaravelAppSettingsServiceProvider',
  1. Publish the migration file.
php artisan vendor:publish --provider="A2Way\LaravelAppSettings\LaravelAppSettingsServiceProvider"
  1. Run the migration.
php artisan migrate
  1. Use.
php artisan tinker
>>>A2Way\LaravelAppSettings\AppSettings::set('hello', 'world');
=>true
>>> A2Way\LaravelAppSettings\AppSettings::get('hello');
=> "world"