Files
hatame.andarza09/app/helpers/helpers.php
T
hatame 6302570d75 git add .
git commit "Implement authentication flow and initialize home page hero section"
2026-08-16 14:51:49 +03:30

12 lines
260 B
PHP

<?php
if (!function_exists('getUserFullName')) {
function getUserFullName(?\App\Models\User $user = null): string
{
if (!$user) {
$user = auth()->user();
}
return $user->first_name . ' ' . $user->last_name;
}
}