Laravel helper function to display footer date

Here's helper to display the automatically updating year in the footer.

Autoloaded helper:

if (! function_exists('since')) {
function since(int $year_since): string
{
$current_year = now()->year;
 
return ($year_since === $current_year) ? (string) $current_year : "$year_since - $current_year";
}
}
if (! function_exists('since')) {
function since(int $year_since): string
{
$current_year = now()->year;
 
return ($year_since === $current_year) ? (string) $current_year : "$year_since - $current_year";
}
}

Blade file:

{{ since(2003) }}
{{ since(2003) }}