This commit is contained in:
Saeed Vaziry
2024-09-27 20:36:03 +02:00
committed by GitHub
parent b62c40c97d
commit f6bc04763b
122 changed files with 6609 additions and 807 deletions

View File

@ -27,7 +27,7 @@ function date_with_timezone($date, $timezone): string
function htmx(): HtmxResponse
{
return new HtmxResponse();
return new HtmxResponse;
}
function vito_version(): string
@ -48,3 +48,10 @@ function convert_time_format($string): string
return preg_replace('/(\d+)h/', '$1 hours', $string);
}
function get_public_key_content(): string
{
return str(file_get_contents(storage_path(config('core.ssh_public_key_name'))))
->replace("\n", '')
->toString();
}