PHP code example of archerzdip / laravel-settings

1. Go to this page and download the library: Download archerzdip/laravel-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/ */

    

archerzdip / laravel-settings example snippets


composer 

// composer.json
"archerzdip/laravel-settings":"dev-master"
// composer update
composer update

// Get setting object
setting();

// Get setting value
setting('key','default');

// Set setting value
setting_set(string $key, $valve, $type = null, $description = null);

// Check the setting exists
setting_exists(string $key);

// Remove the setting value
setting_remove(string $key);


use Setting;
$check = Setting::exists('someKey');

php artisan setting:set {someKey} {someValue}

php artisan setting:get {someKey}