2017 © Pedro Peláez
 

library settings

Laravel database settings manager.

image

klaravel/settings

Laravel database settings manager.

  • Saturday, April 8, 2017
  • by ajmerainfo
  • Repository
  • 0 Watchers
  • 4 Stars
  • 2,401 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 7 % Grown

The README.md

General Settings Manager for Laravel 5.3+

Build Status Total Downloads Latest Stable Version Latest Unstable Version License, (*1)

This module allow you to store settings into database with easy commands. You can store as many as settings and it will fetch settings with caching so only one database query and all settings will store into cache., (*2)

Installation:

  1. Run, (*3)

    composer require klaravel/settings
    

    in console to install this module, (*4)

  2. Open config/app.php and in providers section add:, (*5)

    Klaravel\Settings\ServiceProvider::class,
    

    in aliases section add:, (*6)

    'Setting' => Klaravel\Settings\SettingsFacade::class,
    
  3. Now generate the Settings migration:, (*7)

    php artisan settings:migration
    
    // for migrate database
    php artisan migrate
    

    You will see migration file on you /database/migrations/ folder., (*8)

Usage:

Here's a quick example that shows how to use Setting:, (*9)

Setting::put('key', 'value');   // Insert settings into database
Setting::set('key', 'value');   // Insert settings into database
Setting::get('key');            // Get settings from database
Setting::has('key');            // Check key exits in database
Setting::forget('key');         // Delete key and value from database

The Versions

10/10 2016
10/10 2016
10/10 2016