PHP code example of vendocrat / laravel-settings

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

    

vendocrat / laravel-settings example snippets


"	"vendocrat/laravel-settings": "dev-master"
}

'providers' => [
    // Illuminate Providers ...
    // App Providers ...
    vendocrat\Settings\SettingsServiceProvider::class
];

'providers' => [
	// Illuminate Facades ...
    'Setting' => vendocrat\Settings\Facades\Setting::class
];

$settings = \Setting::all();

\Setting::has($key);

$setting = \Setting::get($key);

\Setting::set($key, $value);

\Setting::forget($key);

\Setting::flush();

\Setting::save();

\Setting::set('foo', 'bar');
\Setting::set('foo', 'bars');

\Setting::save();

dd(\Setting::all());
bash
$ php artisan migrate
html
array [
  "foo" => "bars"
]