2017 © Pedro Peláez
 

library cacheconfig

Prepare app configs

image

geeksdevelop/cacheconfig

Prepare app configs

  • Tuesday, July 18, 2017
  • by wmaster732
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

CacheConfig

Installation

  composer require geeksdevelop/cacheconfig

Service Provider

Add the package to your application service providers in config/app.php file., (*1)

'providers' => [
    /*
     * Package Service Providers...
     */
    Geeksdevelop\Cacheconfig\CacheConfigServiceProvider::class,
],

Publish

Publish the migration to your application. Run these commands inside your terminal., (*2)

  php artisan vendor:publish --provider="Geeksdevelop\Cacheconfig\CacheConfigServiceProvider"

Set up package

You can configure the package to use a custom TABLE where the configuration data, the KEY of the cache and the FILTERS will be stored for the query of the data., (*3)

    /*
    |--------------------------------------------------------------------------
    | Name of the configuration table
    |--------------------------------------------------------------------------
    */
    'table' => 'settings',

    /*
    |--------------------------------------------------------------------------
    | Cache key name
    |--------------------------------------------------------------------------
    */
    'key' => 'env',

    /*
    |--------------------------------------------------------------------------
    | Filters search
    |--------------------------------------------------------------------------
    */
    'filters' => [
      // ['id', '=', 1]
    ],

The Versions

18/07 2017

dev-master

9999999-dev

Prepare app configs

  Sources   Download

MIT

by Miguel Lobo

18/07 2017

1.0

1.0.0.0

Prepare app configs

  Sources   Download

MIT

by Miguel Lobo