mirror of
https://github.com/openclassify/openclassify.git
synced 2026-03-09 17:55:27 -05:00
remote sales contract
This commit is contained in:
parent
7cfdf064f1
commit
f837e70e14
@ -31,4 +31,16 @@ if (!function_exists('auth_id_if_null'))
|
||||
function auth_id_if_null($userId) {
|
||||
return $userId ?: auth()->id();
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('replace_to_text'))
|
||||
{
|
||||
function replace_to_text($content, $array)
|
||||
{
|
||||
foreach ($array as $key => $value) {
|
||||
$content = str_replace('${' . $key . '}', $value, $content);
|
||||
}
|
||||
|
||||
return $content;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user