6302570d75
git commit "Implement authentication flow and initialize home page hero section"
12 lines
260 B
PHP
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;
|
|
}
|
|
}
|