Skip to content

loafcms/settings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Loaf Settings

Build Status StyleCI

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.