PHP code example of okipa / laravel-settings-management
1. Go to this page and download the library: Download okipa/laravel-settings-management 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/ */
okipa / laravel-settings-management example snippets
// laravel settings management
// https://github.com/Okipa/laravel-settings-management
$this->app->register(Okipa\LaravelSettingsManagement\SettingsManagementServiceProvider::class);
$email = settings()->email;
settings()->update(['email' => '[email protected]']);
// or
settings()->setAttribute('email', '[email protected]')->save();
// or
settings()->email = [email protected];
settings()->save();