plin2k / laravel-configs
Laravel Configs
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/plin2k/laravel-configs
Requires
- php: >=5.4.0
- illuminate/support: >=4.0
README
Add the service provider to config/app.php in the providers array, or if you're using Laravel 5.5, this can be done via the automatic package discovery.
LaravelConfigs\Providers\LaravelConfigsServiceProvider::class,
If you want you can use the facade. Add the reference in config/app.php to your aliases array.
'SimpleConfig' => LaravelConfigs\Facades\SimpleConfig::class,
If you want you can get value in blade template.
@simpleConfig('name','default')