PHP code example of r94ever / laravel-model-setting
1. Go to this page and download the library: Download r94ever/laravel-model-setting 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/ */
r94ever / laravel-model-setting example snippets
$model->saveSetting(array $settings);
$model->hasSetting(string $key); // return true or false
$model->hasSettings(array $keys, bool $any = false); // return true or false
// When $any is FALSE, method will return TRUE only if model has all given setting keys
// Otherwise, method will return TRUE if model has any of the given setting keys