plin2k / laravel-configs
Laravel Configs
1.0.0
2021-04-11 18:41 UTC
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')