loaf / settings
Loaf Settings Plugin
0.2.0
2018-04-01 17:49 UTC
Requires
- php: >=7.1.0
- laravel/framework: 5.5.*
Requires (Dev)
- loaf/admin: dev-master
- loaf/base: dev-master
- orchestra/testbench: ~3.5
- phpunit/phpunit: ^6.5
README
User-customizable settings for Loaf.
Usage
The package provides a facade for easy access to settings.
// Set a value Settings::set('website.appearance.color', '#dbedff'); // Get a value $value = Settings::get('website.appearance.color', $default_value);
Sections, Groups, Fields, Types and Models
Settings are categorized in sections
that contain groups
that contain fields
.
fields
have a specific SettingType
(type
) with a corresponding database model
.