PHP code example of rezkonline / laravel-user-settings
1. Go to this page and download the library: Download rezkonline/laravel-user-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/ */
rezkonline / laravel-user-settings example snippets
// Set 'example' setting to 'hello world'
Setting::set('example', 'hello world');
// Save to database
Setting::save();
// Get the same setting
return Setting::get('example');
// Set 'example' setting to 'hello world'
Setting::set('example', 'hello world', 23);
// Save to database
Setting::save(23);
// Get the same setting
return Setting::get('example', null, 23);