mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2025-12-14 12:06:46 +00:00
✨ Add null-safe operator (?->) to handle nullable user instances in Blade templates
This commit is contained in:
@@ -68,8 +68,8 @@
|
||||
</span>
|
||||
|
||||
<div class="grid flex-1 text-start text-sm leading-tight">
|
||||
<span class="truncate font-semibold">{{ auth()->user()->name }}</span>
|
||||
<span class="truncate text-xs">{{ auth()->user()->email }}</span>
|
||||
<span class="truncate font-semibold">{{ auth()->user()?->name }}</span>
|
||||
<span class="truncate text-xs">{{ auth()->user()?->email }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user