@php $id = Auth::user()->id; $StudentData = App\Models\User::findOrFail(Auth::user()->id); $studentphoto = App\Models\Student::where('user_id', $id)->first(); @endphp