/home/techb158/immovalet.com/platform/core/acl/src/Models
Edit: /home/techb158/immovalet.com/platform/core/acl/src/Models/UserMeta.php (1495B)
$userId,
'key' => $key,
]);
return $meta->update(['value' => $value]);
}
/**
* @param string $key
* @param null $default
* @param int $userId
* @return string
*/
public static function getMeta($key, $default = null, $userId = 0)
{
if ($userId == 0) {
$userId = Auth::id();
}
$meta = self::where([
'user_id' => $userId,
'key' => $key,
])->select('value')->first();
if (!empty($meta)) {
return $meta->value;
}
return $default;
}
}