PHP code example of escolalms / settings
1. Go to this page and download the library: Download escolalms/settings library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
escolalms / settings example snippets
use EscolaLms\Settings\Facades\AdministrableConfig;
public function register(){
//...
AdministrableConfig::registerConfig($key = 'config_file.config_key', $rules = ['
AdministrableConfig::setConfig(array $config); // sets config values for any registered config key in $config array, running validation rules
AdministrableConfig::getConfig(); // returns values for all registered config keys
AdministrableConfig::getPublicConfig(); // returns values for config keys registered with public: true