@php $user = App\Models\User::find($post->user_id); $avatar = !$user->github_token && !$user->google_token && !$user->facebook_token ? '/' . custom_theme_url($user->avatar) : custom_theme_url($user->avatar); @endphp
{{ App\Models\User::where('id', $post->user_id)->first()?->name }}