芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/app/Models/Setting.php
where($constraints)->first($selectOptions); } public static function getAll() { $data = Cache::get(config('cache.prefix') . '-settings'); if (empty($data)) { $data = parent::all(); Cache::put(config('cache.prefix') . '-settings', $data, 30 * 86400); } return $data; } public function updateSettingsValue(string $name, string $type, string|null $value):void { self::where([ 'name' => $name, 'type' => $type ])->update([ 'value' => $value ]); } }