Merge remote-tracking branch 'origin/php8' into php8

This commit is contained in:
xiaomlove
2022-12-19 19:01:31 +08:00
2 changed files with 5 additions and 1 deletions

View File

@@ -29,6 +29,8 @@ class Setting extends NexusModel
*/
public static function get($name = null, $default = null): mixed
{
static $settings=null;
if(is_null($settings))
$settings = NexusDB::remember("nexus_settings_in_laravel", 600, function () {
return self::getFromDb();
});