PHP code example of zahidhassanshaikot / settings

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

    

zahidhassanshaikot / settings example snippets


return [
    'cache' => [
        'enabled' => true,
    ],
];

use zahidhassanshaikot\Settings\Facades\Settings;

Settings::all();
Settings::updateOrCreate('site_name', 'laravel-settings');
Settings::updateOrCreateMultiple(['site_name' => 'laravel-settings', 'timezone' => 'UTC']);
Settings::get('site_name');
Settings::delete('site_name');

bash
php artisan vendor:publish --tag="settings-migrations"
php artisan migrate
bash
php artisan vendor:publish --tag="settings-config"
bash)

[//]: # (php artisan vendor:publish --tag="settings-views")

[//]: # (