PHP code example of newnetcms / setting

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

    

newnetcms / setting example snippets


Setting::get('foo', 'default');
Setting::set('foo', 'bar');
Setting::forget('foo');

setting('foo', 'default');
setting(['foo' => 'bar']);
setting()->get('foo', 'default');
setting()->set('foo', 'bar');
setting()->forget('foo');
bash
php artisan migrate