छात्र से पाठ्यक्रम प्राप्त करें:
$student = Student::where('user_id', auth()->id())->first();
$courses = $student->courses()->orderByDesc('course_student.created_at')->get();
छात्र से पाठ्यक्रम प्राप्त करें:
$student = Student::where('user_id', auth()->id())->first();
$courses = $student->courses()->orderByDesc('course_student.created_at')->get();