git add .
git commit "Implement authentication flow and initialize home page hero section"
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user