コード例 #1
0
 public function profile($id)
 {
     $user = User::with('gender', 'course', 'userType')->where('StudentID', $id)->first();
     $courses = Course::all()->lists('CourseAbbr', 'CourseID');
     $genders = Gender::all()->lists('Gender', 'GenderID');
     return View::make('validated.profile.edit', compact('user', 'courses', 'genders'));
 }