zakhayko/settings

Settings.json for Laravel

v1.1.0 2019-07-27 10:21 UTC

This package is auto-updated.

Last update: 2025-04-27 23:09:38 UTC


README

Installation instructions

  1. Install with composer
    composer require zakhayko/settings
    
  2. Artisan commands
    php artisan settings:get
    php artisan settings:get {key}
    php artisan settings:set {key} {value?} (--bool?, --int, --null)
    php artisan settings:forget {key}
    php artisan settings:flush    
    
  3. Helper functions
    settings($key, $default); //Get attribute
    settings([$key1=>$value1]); //Set attribute
    settings(); //Returns Valuestore object