- relationships->user->data) ? $getResource($post->relationships->user->data) : null; ?>
+ @php $user = ! empty($post->relationships->user->data) ? $getResource($post->relationships->user->data) : null; @endphp
{{ $user ? $user->attributes->displayName : $translator->trans('core.lib.username.deleted_text') }}
{!! $post->attributes->contentHtml !!}
diff --git a/framework/core/views/layouts/basic.blade.php b/framework/core/views/layouts/basic.blade.php
index 8e7978ec0..0054dc377 100644
--- a/framework/core/views/layouts/basic.blade.php
+++ b/framework/core/views/layouts/basic.blade.php
@@ -1,9 +1,8 @@
-{{-- TODO: Change below to @php when Laravel is upgraded --}}
-get('theme_primary_color', '#000');
-?>
+@endphp
-
+