bozboz/config

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (v1.6.1) of this package.

Maintainers

Details

github.com/bozboz/config

Source

Issues

Installs: 2 965

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 0

Open Issues: 0

pkg:composer/bozboz/config

v1.6.1 2022-03-14 11:33 UTC

This package is auto-updated.

Last update: 2022-03-14 11:34:13 UTC


README

Installation

  1. composer require bozboz/config
  2. Add service provider to app/config.php Bozboz\Config\Providers\SiteConfig::class,
  3. Publish vendor migrations php artisan vendor:publish
  4. Migrate php artisan migrate

Usage

app('siteConfig')->get('<alias>')

Bozboz\Config\Config can be injected as a dependency

All views have access to a $config variable. Can be used like: {{ $config->get('<alias>') }}

Fetch a collection of all config belonging to a tag: $config->tag('<tag>')