PHP code example of novay / settings

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

    

novay / settings example snippets


settings()->set('app_name', 'My App');
settings('app_name');

settings()->group('payment')->set('midtrans_key', 'sk-xxx');

@setting('app_name')          // Blade
bash
composer migrate
php artisan vendor:publish --tag=settings-config
bash
php artisan setting:set app_name "My App"
php artisan setting:list
php artisan setting:forget api_key
php artisan setting:rotate-key