PHP code example of kotus / laravel-settings

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

    

kotus / laravel-settings example snippets


 Settings::get($key = null, array $options = [])
 Settings::has(string $key, array $options = []): bool
 Settings::set(string $key, string $value, array $options = []): bool
 Settings::add(string $key, string $value, array $options = []): bool
 Settings::flushCache(array $tenants = []): void

$value = Settings::get('my_settings', ['tenant' => 'my_tenant']);
bash
php artisan vendor:publish --provider="Kotus\Settings\Providers\SettingsServiceProvider" --tag="config"
bash
php artisan migrate