remote sales contract

This commit is contained in:
Muammer Top 2021-03-22 16:39:38 +03:00
parent 7cfdf064f1
commit f837e70e14

View File

@ -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;
}
}