예제 #1
0
 public function update(StudentRequest $request, Student $student)
 {
     $user = $student->user()->first();
     $student->update($request->all());
     $user->update($request->all());
 }