Skip to content

A free open source IT asset/license management system

Switched from fullName() to getFullNameAttribute()

snipe36a343365e77
diff --git a/resources/views/account/view-assets.blade.php b/resources/views/account/view-assets.blade.php
index b77bddcf0d..10b09602ab 100755
--- a/resources/views/account/view-assets.blade.php
+++ b/resources/views/account/view-assets.blade.php
@@ -2,7 +2,7 @@
{{-- Page title --}}
@section('title')
-{{ trans('general.hello_name', array('name' => $user->present()->fullName())) }}
+{{ trans('general.hello_name', array('name' => $user->present()->getFullNameAttribute())) }}
@parent
@stop
diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.php
index 13a65bf28b..a9f547f4f5 100644
--- a/resources/views/layouts/default.blade.php
+++ b/resources/views/layouts/default.blade.php
@@ -328,7 +328,7 @@
<i class="fas fa-users" aria-hidden="true"></i>
@endif
- <span class="hidden-xs">{{ Auth::user()->first_name }} <strong
+ <span class="hidden-xs">{{ Auth::user()->getFullNameAttribute() }} <strong
class="caret"></strong></span>
</a>
<ul class="dropdown-menu">