@php $current_user=\DB::table('users')->where('id',\Auth::user()->id)->first(); $current_user_image=\DB::table('user_photos')->where('user_id',$current_user->id) ->where('is_profile','1') ->first(); @endphp
  • @if($current_user_image) user-image @else user-image @endif {{$current_user->name}}
    Welcome {{$current_user->name}} !
    Profile
    @csrf