PHP code example of lysice / laravel-user-settings
1. Go to this page and download the library: Download lysice/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/ */
// 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);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.