Package Data | |
---|---|
Maintainer Username: | torann |
Maintainer Contact: | daniel@lyften.com (Daniel Stainback) |
Package Create Date: | 2013-11-09 |
Package Last Update: | 2018-07-02 |
Home Page: | http://lyften.com/projects/laravel-registry |
Language: | PHP |
License: | BSD-2-Clause |
Last Refreshed: | 2024-11-20 03:01:52 |
Package Statistics | |
---|---|
Total Downloads: | 2,013 |
Monthly Downloads: | 2 |
Daily Downloads: | 0 |
Total Stars: | 22 |
Total Watchers: | 7 |
Total Forks: | 16 |
Total Open Issues: | 11 |
Registry manager for Laravel 5. An alternative for managing application configurations and settings. Now with the magic of caching, so no more database calls to simply get site setting.
To get the latest version of Registry simply require it in your composer.json
file.
"torann/registry": "0.2.*@dev"
You'll then need to run composer install
to download it and have the autoloader updated.
Once Registry is installed you need to register the service provider with the application. Open up app/app.php
and find the providers
key.
'providers' => array(
'Torann\Registry\RegistryServiceProvider',
)
Registry also ships with a facade which provides the static syntax for creating collections. You can register the facade in the aliases key of your app/app.php
file.
'aliases' => array(
'Registry' => 'Torann\Registry\Facades\Registry',
)
Run this on the command line from the root of your project:
$ php artisan vendor:publish
A configuration file will be publish to config/registry.php
and a migration file to database/migrations/
View the official documentation.