2017 © Pedro Peláez
 

library config-db

Database config loader for Laravel, for simple key=>value configuration.

image

jameswmcnab/config-db

Database config loader for Laravel, for simple key=>value configuration.

  • Thursday, June 21, 2018
  • by jameswmcnab
  • Repository
  • 1 Watchers
  • 2 Stars
  • 1,257 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 9 Versions
  • 14 % Grown

The README.md

Abandoned

This package is abandoned and no longer maintained. The author suggests using the arcanedev/laravel-settings package instead., (*1)

Database configuration loader for Laravel

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

This package provides simple database config storage and loading for Laravel, in the form of a single table to store key => value pairs., (*3)

Laravel Versions

Laravel This Package
5.4.* ^2.0

Make sure you consult the Upgrade Guide (UPGRADE.md) when upgrading., (*4)

Installation

Begin by pulling in the package through Composer., (*5)

composer require jameswmcnab/db-config

Next include the service provider within your config/app.php file., (*6)

'providers' => [
    Jameswmcnab\ConfigDb\ConfigDbServiceProvider::class,
];

If you wish to use the ConfigDb facade in your application, register within your config/app.php file., (*7)

'aliases' => [
    'ConfigDb' => Jameswmcnab\ConfigDb\Facades\ConfigDb::class,
];

Finally run the migrations to create the database table:, (*8)

php artisan migrate

Customising the database table name

If you want to change the default config table name to something other than config then publish the package config:, (*9)

php artisan vendor:publish --provider="Jameswmcnab\ConfigDb\ConfigDbServiceProvider"

Then edit config/config-db.php in your main application directory to change the table name. Note that you'll need to do this before running the migration., (*10)

Usage

Save configuration by key:

ConfigDb::save('foo', 'bar');

Get configuration by key:

ConfigDb::get('foo'); // bar

The Versions

21/06 2018

dev-develop

dev-develop

Database config loader for Laravel, for simple key=>value configuration.

  Sources   Download

MIT

The Requires

 

The Development Requires

21/06 2018

dev-master

9999999-dev

Database config loader for Laravel, for simple key=>value configuration.

  Sources   Download

MIT

The Requires

 

The Development Requires

21/06 2018

v3.0.0

3.0.0.0

Database config loader for Laravel, for simple key=>value configuration.

  Sources   Download

MIT

The Requires

 

The Development Requires

19/03 2018

1.x-dev

1.9999999.9999999.9999999-dev

Database config loader for Laravel, for simple key=>value configuration.

  Sources   Download

MIT

The Requires

 

The Development Requires

19/03 2018

v1.1.0

1.1.0.0

Database config loader for Laravel, for simple key=>value configuration.

  Sources   Download

MIT

The Requires

 

The Development Requires

15/09 2017

v2.0.0

2.0.0.0

Database config loader for Laravel, for simple key=>value configuration.

  Sources   Download

MIT

The Requires

 

The Development Requires

13/09 2016

dev-feature/tests

dev-feature/tests

Database config loader for Laravel, for simple key=>value configuration.

  Sources   Download

MIT

The Requires

 

The Development Requires

29/07 2015

v1.0

1.0.0.0

Database config loader for Laravel, for simple key=>value configuration.

  Sources   Download

MIT

The Requires

 

The Development Requires

05/03 2015

v0.5

0.5.0.0

Database config loader for Laravel, for simple key=>value configuration.

  Sources   Download

MIT

The Requires

 

The Development Requires