PHP code example of qwince / l5-settings
1. Go to this page and download the library: Download qwince/l5-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/ */
qwince / l5-settings example snippets
Setting::set('foo', 'bar');
Setting::get('foo', 'default value');
Setting::forget('foo');
$settings = Setting::all();
namespace App;
use qwince\LaravelSettings\SettingModel;
class Setting extends SettingModel
{
}
namespace App;
use qwince\LaravelSettings\Traits\SettingsUserTrait;
class User extends Authenticatable
{
use SettingsUserTrait;
}